June 2002
Intermediate to advanced
816 pages
28h 12m
English
RequestType
stringvar
= Request.RequestType
The RequestType property returns a String containing the request type (i.e., GET or POST) of the current request.
stringvar
A String variable to receive the request type.
The example writes the RequestType property to the browser:
Sub Page_Load( ) Dim stringvar As String stringvar = Request.RequestType Message.Text = "The request type is: " & stringvar End Sub
This property is listed as read/write; however, there really aren’t any situations where it would be useful to change its value. From the read standpoint, this property returns the same information as the read-only HttpMethod property listed earlier in this chapter. If you attempt to change its value, no corresponding change occurs in the value of HttpMethod.
Read now
Unlock full access