ASP RequestObject
The Request object is used to retrieve information from visitors.
QueryString Collection Examples
Sending query information when a user clicks a link
This example demonstrates how to send query information to a page in a link and retrieve this information on the target page (in this case, the same page).
A simple application of the QueryString collection
This example demonstrates how to use the QueryString collection to retrieve values from a form. (This form uses the GET method, which means the information sent is visible to the user.)
How to use information from a form
This example demonstrates how to use the values retrieved from a form. This form uses the GET method.
More information from a form
This example demonstrates what the QueryString collection will contain if input fields contain several identical names. It will show how to use the Count keyword to count the "name" attribute. This form uses the GET method.
Form Collection Examples
A simple application of the Form collection
This example demonstrates how to use the Form collection to retrieve values from a form. (This form uses the POST method, which means the information sent is invisible to the user.)
How to use information from a form
This example demonstrates how to use the values retrieved from a form. This form uses the POST method.
More information from a form
This example demonstrates what the Form collection will contain if input fields contain several identical names. It will show how to use the Count keyword to count the "name" attribute. This form uses the POST method.
Form with radio buttons
This example demonstrates how to use the Form collection to interact with users through radio buttons. This form uses the POST method.
Form with checkboxes
This example demonstrates how to use the Form collection to interact with users through checkboxes. This form uses the POST method.
Other Examples
Retrieving server variables
This example demonstrates how to obtain information such as the visitor's browser type, IP address, etc.
Creating a welcome cookie
This example demonstrates how to create a Welcome Cookie.
Detecting the total number of bytes sent by the user
This example demonstrates how to detect the total number of bytes the user sends in the Request object.
Request Object
When a browser requests a page from the server, this behavior is called a request. The Request object is used to obtain information from the user. Its collections, properties, and methods are described below:
Collections
| Collection | Description |
|---|---|
| ClientCertificate | Contains all the field values stored in the client certificate. |
| Cookies | Contains all the cookie values sent in the HTTP request. |
| Form | Contains all the form (input) values sent by a form using the POST method. |
| QueryString | Contains all the variable values in the HTTP query string. |
| ServerVariables | Contains all the server variable values. |
Properties
| Property | Description |
|---|---|
| TotalBytes | Returns the total number of bytes the client sent in the request body. |
Methods
| Method | Description |
|---|---|
| BinaryRead | Retrieves data sent from the client to the server as part of a POST request and stores it in a safe array. |
Other Extensions