Latest web development tutorials

ASP Request Object

Request object is used to obtain information from the visitors there.


Examples

QueryString collection instance

When the user clicks on the link Contact information
This example demonstrates how to send a query to the page in the link information, and retrieve information on the target page (in this case, is the same page).

Simple application QueryString collection
This example demonstrates how to use the QueryString collection to retrieve values ​​from the form. (This form uses the GET method, which means that the information sent to users is visible.)

How to use information from a form
This example demonstrates how to use the values ​​retrieved from the form. This form uses the GET method.

More information from a form
This example demonstrates If the input field contains a number of the same name, QueryString collection contains what. It will show how to use the Count keyword to count the "name" attribute. This form uses the GET method.

Examples

Form collection instance

Form a set of simple applications
This example demonstrates how to use the Form collection to retrieve values ​​from the form. (This form uses the POST method, which means that the information sent to the user is not visible.)

How to use information from a form
This example demonstrates how to use the values ​​retrieved from the form. This form uses the POST method.

More information from a form
This example demonstrates If the input field contains a number of the same name, Form collection contains what. 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 the user via radio button. This form uses the POST method.

Form with checkboxes
This example demonstrates how to use the Form collection box interact with the user. This form uses the POST method.

Examples

Other examples

Get server variables
This example demonstrates how to get the visitor's browser type, IP address and other information.

Create a welcome cookie
This example demonstrates how to create a Welcome Cookie.

The total number of bytes sent by the user to detect
This example demonstrates how to detect the total number of bytes sent by the user in the Request object.


Request Object

When a browser requests to the server page, this behavior is called a request (request). Request object is used to obtain information from the user. Its collections, properties, and methods are described below:

set

集合 描述
ClientCertificate 包含了存储在客户证书中的所有的字段值。
Cookies 包含了 HTTP 请求中发送的所有的 cookie 值。
Form 包含了使用 post 方法由表单发送的所有的表单(输入)值。
QueryString 包含了 HTTP 查询字符串中所有的变量值。
ServerVariables 包含了所有的服务器变量值。

Attributes

属性 描述
TotalBytes 返回在请求正文中客户端发送的字节总数。

method

方法 描述
BinaryRead 取回作为 post 请求的一部分而从客户端发送至服务器的数据,并把它存储在一个安全的数组中。