Hi there,
I am having trouble with some data that is ripped from a SQL database and
displayed as a hyperlink.
The hyperlink inserts the data into a querystring so the next page can read
it.
However, some of the data has apostrophies (') in it, so the page does not
redirect properly (invalid syntax) because of the apostrophy.
so i tried to use the URL encode to get around this to no avail - it doesnt
work.
The hyperlink is as follows, is this correct - if so why aint it working
:-( ? and is this the "best" way to get around this problem?
*****
<a href= "page2.asp?DATA =<% server.URLEncod e(=RS("Value")) %>"><%
=RS("Value")%></a>
*****
Thanks
--
Thanks in advance
Fawke
Please remove ANTI and SPAM
from my email address before emailing me.
I am having trouble with some data that is ripped from a SQL database and
displayed as a hyperlink.
The hyperlink inserts the data into a querystring so the next page can read
it.
However, some of the data has apostrophies (') in it, so the page does not
redirect properly (invalid syntax) because of the apostrophy.
so i tried to use the URL encode to get around this to no avail - it doesnt
work.
The hyperlink is as follows, is this correct - if so why aint it working
:-( ? and is this the "best" way to get around this problem?
*****
<a href= "page2.asp?DATA =<% server.URLEncod e(=RS("Value")) %>"><%
=RS("Value")%></a>
*****
Thanks
--
Thanks in advance
Fawke
Please remove ANTI and SPAM
from my email address before emailing me.
Comment