No matter how long the querystring is I'd suggest using Server.URLEncode(). And here is a little more info about it that I previously put together. Example URL with a querystring: [url]http://www.mysite.com/mydir/mypg.asp?myvar1=hey&myvar2=ho[/url] Because a variable might contain some odd characters like spaces, it's usually a good idea to use Server.URLEncode when creating a querystring from a variable: <a href="http://www.mysite.com/mypage?id=<%= Server.URLEncode(objRS("MyIDFldFromDB")) %>">objRS("MyIDFldFromDB")</a> And in the page that is opened you can use Request.QueryString("id") to get the value of id. Best regards, J. Paul Schmidt, Freelance ASP Web Developer [url]http://www.Bullschmidt.com[/url] ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool... *** ...
No matter how long the querystring is I'd suggest using
Server.URLEncode(). And here is a little more info about it that I
previously put together.
Example URL with a querystring:
[url]http://www.mysite.com/mydir/mypg.asp?myvar1=hey&myvar2=ho[/url]
Because a variable might contain some odd characters like spaces, it's
usually a good idea to use Server.URLEncode when creating a querystring
from a variable:
<a href="http://www.mysite.com/mypage?id=<%=
Server.URLEncode(objRS("MyIDFldFromDB")) %>">objRS("MyIDFldFromDB")</a>
And in the page that is opened you can use Request.QueryString("id") to
get the value of id.
Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
[url]http://www.Bullschmidt.com[/url]
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Bookmarks