Request 对象用于从访问者获取信息。
当用户点击链接时发送查询信息
如何将查询信息发送到链接内的页面,并在目标页面(在本例中为同一页面)上检索该信息。
QueryString 集合的最简单用法
使用 QueryString 集合从表单中检索值(表单使用 get 方法 - 发送的信息对每个人都可见)。
如何使用表单中的信息
如何使用从表单检索的值。
来自表格的更多信息
如果多个输入字段具有相同的名称,则 QueryString 集合包含的内容。它还演示了如何使用 Count 关键字对 "name" 属性进行计数。
最简单使用的表单集合
Form 集合如何从表单中检索值(表单使用 post 方法 - 发送的信息对其他人不可见)。
如何使用表单中的信息
如何使用从表单检索的值。
来自表格的更多信息
如果多个输入字段具有相同的名称,则 Form 集合包含的内容。它还演示了如何使用 Count 关键字对 "name" 属性进行计数。
带有单选按钮的表单
如何通过单选按钮与用户交互。
带有复选框的表单
如何通过复选框与用户交互。
获取服务器变量
如何获取访问者的浏览器类型、IP 地址等。
创建欢迎 cookie
如何创建欢迎 Cookie。
查找用户发送的总字节数
如何查找用户在 Request 对象中发送的总字节数。
当浏览器向服务器请求页面时,称为请求。 Request 对象用于从访问者获取信息。其集合、属性和方法描述如下:
Collection | Description |
---|---|
ClientCertificate | Contains all the field values stored in the client certificate |
Cookies | Contains all the cookie values sent in a HTTP request |
Form | Contains all the form (input) values from a form that uses the post method |
QueryString | Contains all the variable values in a HTTP query string |
ServerVariables | Contains all the server variable values |
Property | Description |
---|---|
TotalBytes | Returns the total number of bytes the client sent in the body of the request |
Method | Description |
---|---|
BinaryRead | Retrieves the data sent to the server from the client as part of a post request and stores it in a safe array |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!