Working With Objects

Home  »  ASP  »  Working With Objects


    

Contents

  • What Are Objects?
  • Built-in ASP Objects
  • What Are Objects?

    An Object is a Real Word Thing Which performs a Specific Task and which has a set of Properties and Methods. Properties of Object are Also Called as Attributes of an Object and Method is also Known as the Function of the Object Like What an Object can do For Example A Car is an Object which has a Certain Number of Properties Like Color, Model No, Average etc and a Function Known as Run When A User gives Some Race then the Car Will be Moved. And an Object has also Some Actions Those are Performed when a Special Call is made to him the Special call is called as Event.



    Built-in ASP Objects

    There are Seven objects those are responsible for Working of Active Server Pages These are used for Performing an Application to Work Properly In This Every Object has Certain Properties and Methods those are used for Making and Executing an Application.

    The various type of Asp objects are as follows:-

    Response Object
    The Response object is used to send output on client computer and For This purpose Response provides us Write Method which send output to the user's web browser and Response also control how and when data is to sent and it also write some additional files when a user Request For a Web page those are also known as cookies. It maintains information about the current visitor in the form of cookies.

    Request Object
    The Request Object is used to Retrieve the data that is sent from Client We know that the Main Feature of ASP is to Send a Information from Client to Server For Performing some operations When the Client 's Web Browser Makes a Request For a Web Page From Server then it Also Send Some Information to Server Like name of web browser ,time when a Request was made then all the data that is sent to the Server is Obtained by using Cookies and forms and also by querystrings those are information containers.

    Application object
    An Application object is used to share information among several clients visiting the same pages The Application refers to all the Pages those are Stored on server The Application object will Share all the Data among Client those are using an Application and it also maintains information about the each user When he Request For a Page.

    Session object
    Session object is used for Referring a Single User which is Accessing an Application therefore a new instance is created for Each user when he makes a Request first Time then The Session object will creates a new Session or Connection for Each new user and it also Store some Information into the Session variables

    Server Object
    Server Object provides a few basic properties and Methods of server objects Generally Server Object is used for creating an object to Application that Resides on Server Computer Server provides Createobject Method that is used for Creating an Object of Server Components.

    ObjectContext Object
    ObjectContext Object is used for Connecting or Linking ASP with Another Server or any other Microsoft Transaction server for Searching or Retrieving data from other Servers or Computers.

    ASPError object
    This is also an important object of ASP which is used for Retrieving the Some about Errors Like Line Number where an Error has occurred and Source means name of File and Number of Error and Also a Short Description about an Error When an Error has Occurred in Asp Program.










    Share on Google Plus
      Blogger Comment
      Facebook Comment