While running websites the first thing that happens is that page gets loaded. During this the page event cycle executes and fires lots of events.
Types of Object:
Session
Application
Cache
Request
Response
Server
User
Trace
Server Object
Server object is used to process the request from the client.
Method
Description
CreateObject(String)
Creates an instance of the COM object identified by its ProgID (Programmatic ID).
CreateObject(Type)
Creates an instance of the COM object identified by its Type.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Execute(String)
Executes the handler for the specified virtual path in the context of the current request.
Execute(String, Boolean)
Executes the handler for the specified virtual path in the context of the current request and specifies whether to clear the QueryString and Form collections.
GetLastError
Returns the previous exception.
GetType
Gets the Type of the current instance.
HtmlEncode
Changes an ordinary string into a string with legal HTML characters.
HtmlDecode
Converts an Html string into an ordinary string.
ToString
Returns a String that represents the current Object.
Transfer(String)
For the current request, terminates execution of the current page and starts execution of a new page by using the specified URL path of the page.
UrlDecode
Converts an URL string into an ordinary string.
UrlEncodeToken
Works same as UrlEncode, but on a byte array that contains Base64-encoded data.
UrlDecodeToken
Works same as UrlDecode, but on a byte array that contains Base64-encoded data.
MapPath
Return the physical path that corresponds to a specified virtual file path on the server.
Transfer
Transfers execution to another web page in the current application.
Request Object
The request object is used to provide the request made by the client to the server.
Property
Description
AcceptTypes
Types to be accepted by the URL
ApplicationPath
Where the application gets hosted
Browser
The facilities provided by the browser
ContentEncoding
Type of parsing used
ContentLength
This will specify the total length of the request
ContentType
This will set the type of data to be sent or received
Cookies
Cookies data to be get or set
FilePath
Gets the location path
Files
Gets the data of the file being sent.
Form
Gets a collection of form variables.
Headers
Gets a collection of HTTP headers.
HttpMethod
The HTTP functions used by the browser.
InputStream
The data being sent by the browser.
IsSecureConnection
Checks whether the request is secure or not
QueryString
Gets the data being sent in the query string form
RawUrl
Will get the URL
RequestType
The type of request to send data
ServerVariables
The kind of variable receiving data
TotalBytes
Total bytes while transmission
Url
URL of the request
UrlReferrer
Will get detail about the URL being used
UserAgent
Client end details
UserHostAddress
Get the IP details
UserHostName
The hosted address
UserLanguages
Will get the language being used.
Response Object
The response after being processed by the server is contained in this object.
Method
Description
AddHeader
To add additional information
AppendCookie
To add temporary information
AppendHeader
It will add additional information for the devices
0 Comment(s)