p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Professional (http://p2p.wrox.com/forumdisplay.php?f=63)
-   -   How to pass plus (+) character in querystring (http://p2p.wrox.com/showthread.php?t=5599)

marjorin October 30th, 2003 10:59 PM

How to pass plus (+) character in querystring
 
Is it possible to pass plus (+) character in the querystring?

I already tried using Server.HTMLEncode but the plus character is converted to space. I also read that the javascript's escape function cannot convert plus.


ittorget October 31st, 2003 04:09 AM

dont use Server.HTMLEncode then


pgtips October 31st, 2003 04:36 AM

You should use Server.URLEncode not HTMLEncode.

rodmcleay October 31st, 2003 04:39 AM

Very helpful ittorget,
Try URLEncode
<a href="test2.asp?testVal=<%= Server.URLEncode("4+4=8")%>">CLickHere</a>

======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================

rodmcleay October 31st, 2003 04:40 AM

Sorry pgtips, you beat me to it.


======================================
They say, best men are moulded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================


All times are GMT -4. The time now is 01:48 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.