What is the server object ?

October 28, 2007 · Filed Under ASP.Net Interview Questions, Placement Questions 



Don't want to miss a single bit? Subscribe By Email for Daily Jobs

Enter your email address :

All the latest from JobsAdda on Jobsadda.com delivered to your mailbox everyday.

The Server object provides several miscellaneous functions that you can use in your Active Server Page applications. Although most of its methods are seldom used, one method, the CreateObject method, and the Server object’s single property, ScriptTimeout, are invaluable. You will use these in many of your scripts.

The Server object, as its name implies, represents the web server itself, and much of the functionality it provides is simply functionality the web server itself uses in the normal processing of client requests and server responses.

ScriptTimeout
Server.ScriptTimeout [= lngNumSeconds]
Specifies the maximum amount of time the web server will continue processing your script. If you do not set a value for this property, the default value is 90 seconds.

CreateObject
Set objMyObject = Server.CreateObject(strProgId)
Instantiates an object on the server. Once instantiated, this object’s properties and methods can be used just as you can use the properties and methods of the objects that come with ASP. The DLLs from which these objects are instantiated must be installed and registered on the web server machine separately from your installation of IIS.

Related Articles


Get Latest JobsAdda.com Jobs, news & updates  via Email