YouTip LogoYouTip

Asp Ref Request

ASP Request Object

--

ASP Tutorial

ASP TutorialASP IntroductionASP InstallationASP SyntaxASP VariablesASP ProceduresASP FormsASP CookiesASP SessionASP ApplicationASP #includeASP Global.asaASP Sending Email

ASP Objects

ASP ResponseASP RequestASP ApplicationASP SessionASP ServerASP ErrorASP FileSystemASP TextStreamASP DriveASP FileASP FolderASP DictionaryASP ADO

ASP Components

ASP AdRotatorASP BrowserCapASP Content LinkingASP Content Rotator

ASP and AJAX

AJAX IntroductionAJAX ASPAJAX Database

ASP Summary

ASP Quick ReferenceASP Summary

ASP Examples

ASP Examples

.ASP Response Object

ASP Application Object.

Deep Dive

Computer Science

Programming Languages

Web Service

Scripting

Programming

Software

Scripting Languages

Web Design and Development

Development Tools

Web Services

ASP Request Object


The Request object is used to get information from visitors.


Example

QueryString Collection Examples

Send query information with a link

This example demonstrates how to send query information to a page via a link and retrieve it on the target page (in this case, the same page).

Simple use of the QueryString collection

This example demonstrates how to use the QueryString collection to retrieve values from a form. (The 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 values retrieved from a form. This form uses the GET method.

More information from a form

This example demonstrates what the QueryString collection contains if input fields contain several identical names. It shows how to use the Count keyword to count the "name" attribute. This form uses the GET method.

Example

Form Collection Examples

Simple use of the Form collection

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

How to use information from a form

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

More information from a form

This example demonstrates what the Form collection contains if input fields contain several identical names. It shows 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 buttons. This form uses the POST method.

Form with checkboxes

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

Example

Other Examples

Get server variables

This example demonstrates how to obtain information such as the visitor's browser type and IP address.

Create a welcome cookie

This example demonstrates how to create a Welcome Cookie.

Detect the total number of bytes sent by the user

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 a page from a server, this action is called a request. The Request object is used to get information from the user. Its collections, properties, and methods are described below:

Collections

Collection Description
ClientCertificate Contains all field values stored in the client certificate.
Cookies Contains all cookie values sent in the HTTP request.
Form Contains all form (input) values sent using the POST method.
QueryString Contains all variable values in the HTTP query string.
ServerVariables Contains all server variable values.

Properties

Property Description
TotalBytes Returns the total number of bytes sent by the client 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.

← Ng Ng MouseenterNg Ng Mousedown β†’