Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • Page Objects in .NET

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 46
    Comment on it

    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
    AppendToLog It will add the details for logging details
    BinaryWrite To write binary data
    ClearContent To clear the temporary data
    Close Close the connection from the socket
    End Ends the connection
    Equals(Object) Check the object equality
    Flush To delete all unwanted details
    GetType Type of data being sent
    Pics Information about the graphical objects
    Redirect(String) It will redirect the request
    Redirect(String, Boolean) Redirect the details to the client
    SetCookie Will set the cookie on client side
    ToString Current object details
    TransmitFile(String) To transmit the data
    Write(Char) To write the data
    Write(Object) Write data to stream
    Write(String) Write string data.
    WriteFile(String) Write file contents
    WriteFile(String, Boolean) Write file contents including boolean
    .net

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: