[thelist] ASP, FSO Replace
Michele Foster
michele at wordpro.on.ca
Tue Feb 4 14:42:00 CST 2003
Hi folks..
I'm so stuck .. ;(
Here's the code:
Set objFSO = Server.CreateObject( "Scripting.FileSystemObject" )
Set DisplayText =
objFSO.OpenTextFile(Server.MapPath("/recruitment/combolists/list_citizenship
.asp"))
strCombo = (DisplayText.ReadAll)
Replace strCombo, "<option value=""1718"">","<option selected
value=""1718"">"
response.write strCombo
But it's not matching the values .. (I'm using 1718 for the time being .. if
I ever get it to work .. it'll be the value from the current RS.
It's writing the file correctly (i.e. the option box), but not performing
the search/replace. :(
TIA,
Mich
More information about the thelist
mailing list