ASPリクエストオブジェクト
Requestオブジェクトは、訪問者から情報を取得するために使用されます。
QueryStringコレクションの例
クエリ情報を送信するリンク内のページにクエリ情報を送信し、宛先ページ(この例では同じページ)でその情報を取得する方法。
法のQueryStringコレクションQueryStringコレクションを使用して、フォームから値を取得します(フォームはgetメソッドを使用します-送信された情報はすべての人に表示されます)。
方法フォームから取得した値の使用方法。
複数の入力フィールドの名前が等しい場合のQueryStringコレクションの内容。また、Countキーワードを使用して「name」プロパティをカウントする方法も示します。
フォームコレクションの例
でのフォームコレクションフォームコレクションがフォームから値を取得する方法(フォームはpostメソッドを使用します-送信された情報は他の人には見えません)。
方法フォームから取得した値の使用方法。
複数の入力フィールドの名前が等しい場合のフォームコレクションの内容。また、Countキーワードを使用して「name」プロパティをカウントする方法も示します。
を使用してユーザーと対話する方法。
を介してユーザーと対話する方法。
その他の例
を取得する訪問者のブラウザタイプ、IPアドレスなどを取得する方法。
を作成するウェルカム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 |