ASP   «Prev  

How ASP interprets a Query String

The QueryString collection is used to retrieve the variable values in the HTTP query string. The HTTP query string is specified by the values following the question mark (?), like this:
Link with a query string
The line above generates a variable named txt with the value "this is a query string test".
Query strings are also generated by form submission, or by a user typing a query into the address bar of the browser.
Note: If you want to send large amounts of data (beyond 100 kb) the Request.QueryString cannot be used.

Syntax
Request.QueryString(variable)[(index)|.Count] 

www.tsmania.com/order.asp?user=3433&item=23A6&item=333A5
www.tsmania.com/order.asp?user=3433&item=23A6&item=333A5

This is the Action URL from the HTML GET command. The order.asp file will be opened and the data following the ? symbol will be read and stored
This is the Action URL from the HTML GET command. The order.asp file will be opened and the data following the ? symbol will be read and stored

This piece of data identifies the user by his or her ID, in many Web sites, this will be used to retrieve the user's database record. It can be individually referenced as QueryString("user").
This piece of data identifies the user by his or her ID, in many Web sites, this will be used to retrieve the user's database record. It can be individually referenced as QueryString("user").

This piece of data is the first of two items that this use is ordering. It can be individually referenced as QueryString("Item")(1)..
This piece of data is the first of two items that this use is ordering. It can be individually referenced as QueryString("Item")(1).

This piece of data is the second of two items that this use is ordering. It can be individually referenced as QueryString ("Item") (2)
This piece of data is the second of two items that this use is ordering. It can be individually referenced as QueryString ("Item") (2)