Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Querystring related

Thread Tools

Querystring related

Posts: n/a
I am making request to my asp page as


this works great query string value is retrived as "mike"

whereas when I give the URL like this


I dont get id value = %aaa

instead I get some garbage value...

is there some kind of encoding required when % is involved in querystring...

Reply With Quote
Posts: n/a
Yes, non-alphanumeric characters need to be encoded to travel in a URL. If
the link is generated by script, you can use the command:

P.S. it looks like you might be passing query string variables directly to
SQL queries, which is very hackable and insecure. Rule 1 of web programming
is to validate all variables from the client You might try:
and after checking the searchfor string for unexpected junk, construct the
"%aaa" on the server side.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How should multiple (related) projects be arranged (structured) and configured so that they can share code, have a related package structure and enable proper unittesting, and ensuring no namespace collisions Python 14 04-21-2006 04:03 PM
How to get value of QueryString inside QueryString Mehdi ASP .Net 6 04-06-2006 03:41 PM
Passing QueryString URL as a paremeter in QueryString Adeel Ahmad ASP General 1 03-07-2006 02:05 PM
How should threads be terminated? (related to 'Help with thread related tracebacks') Maxwell Hammer Python 7 06-18-2005 04:20 PM
querystring in masterpages - please help suzy ASP .Net 3 04-16-2004 12:26 PM