Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querystrings

Status
Not open for further replies.

mgid

Programmer
Oct 2, 2000
87
0
0
US
Can anyone tell me why when there is a space in a querystring value nothing after the space is posted to the next page? Usually this is not a problem, but with this application the percent signs aren't there. Is this some kind of setting in iis? I'm absolutely at a loss. Thanks.
 
IE will usually fill the space with %20, Netscape won't. It's usually with Netscape that it fails, is that your case? To make it useable on any browser, you need to disallow spaces. If you're using variable fields in your querystrings, you can URLEncode them:

test.asp?val1=<%=Server.URLEncode(value1)%>&val2=<%=Server.URLEncode(value2)%>
 
I had to use URLEncode. It's funny, I've done similar things before and not had the same problem.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top