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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query string limitations

Status
Not open for further replies.

Zarcom

Programmer
May 7, 2002
1,275
CA
Hey All you happy people.

I would like to know if it is possible to send certain characters through a query string. By certian characters I mean "#"

I ran across a bug in my application where someone enters # for a value. When trying to view that record later "comes through a query string" I get errors where anything after the # value in the query string is considered null and void. aka blank.
Thanks for your time. That'l do donkey, that'l do
[bravo] Mark
 
You may have to encode it first
(i.e. < = &lt > = &gt)
, then send it down the pipe. On the other end, have the page parse through the entries and switch any of those it finds back.

Just off the top of my head

Jack
 
best to .htmlEncode any and all values sent via querystring...

It's basically the ascii equivalent prefaced w/ a % sign, where a blank space would be:

%20

But server.htmlEncode will do it for you.

Specifically, I'm not for sure on whether the # sign will cause problems, but apparently, you have established that, so just go with the encoding. ;-)

paul
penny1.gif
penny1.gif
 
I am not sure what you mean by encode Jack.
Do you know if there are other problem characters as far as the query string goes? That'l do donkey, that'l do
[bravo] Mark
 
ROFLMAO!!!

My post encoded my encoding characters.

what it should have said was:
< = & lt > = & gt (just without the spaces after the &)

;)

Jack
 
Ha ha that is some funny shite Jack That'l do donkey, that'l do
[bravo] Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top