Forum Moderators: open
Request.ServerVariables("url")
and convert the slashes into dots, like this:
E.g. /myfolder/myfile.asp
TO
/myfolder.myfile.asp
?
Sincerely,
Darkelve
string= Replace(string, "/", ".")
Easier than I thought.
Replace will do this:
E.g. /myfolder/myfile.asp TO .myfolder.myfile.asp NOT /myfolder.myfile.asp
.myfolder.myfile.asp
NOT
If that's actually what you want then fine, otherwise you'lll probably be best off with Regular Expressions
This will work too:
t = "/myfolder/myfile.asp" t = strReverse(Replace(strReverse(t), "/", ".", 1, 1)) Response.Write t