W
Wayne Wengert
Using ASP 3.0
I want to dynamically build a call to another asp page and include some
parameters as part of the call. The basic format of the call is something
like::
"<a href='mypage.asp?id=" & theid & "&location='" & thelocation &
"'>GO</a>"
where there is a single quote followed by a double quote following the
...location=... and vica-versa after the variable
My problem is that the variable thelocation can include a single quote or a
double quote. I tried Server.URLEncode and that didn't work. I got a string
that ended up causing a Page Not Found (it encoded the dot in the page name
and that didn't work)
How can I encode the data so that quotes will be accepted in this type of
call?
Wayne
I want to dynamically build a call to another asp page and include some
parameters as part of the call. The basic format of the call is something
like::
"<a href='mypage.asp?id=" & theid & "&location='" & thelocation &
"'>GO</a>"
where there is a single quote followed by a double quote following the
...location=... and vica-versa after the variable
My problem is that the variable thelocation can include a single quote or a
double quote. I tried Server.URLEncode and that didn't work. I got a string
that ended up causing a Page Not Found (it encoded the dot in the page name
and that didn't work)
How can I encode the data so that quotes will be accepted in this type of
call?
Wayne