An ActiveX Object
An ActiveX object (component) is similar to an Active Server Page
built-in object. However, there is an important difference between
the two. An instance of the object must be explicitly instantiated
before it can be used.
can use in your pages. They make common ASP tasks easier,
and add a great deal of power to your pages.
common objects.
Err[.{property | method}]
Where Err is the generated error object. The Err object’s
properties provide information about the error object. These
properties are listed below:
The Err object’s Properties
Property Description
Description Sets or returns the referenced error description.
Number Sets or returns the number value of the error.
Source Sets or returns the Application object that
generated the error.
HelpFile Sets or returns the fully qualified path to the help
file.
HelpContext Sets or returns the topic ID with the help file.
The Err object also provides methods that control it. The Err
object’s methods, as shown below, can be used to generate a
runtime error or rest the Err object’s properties.
The Err object’s Methods
Method Description
Raise Generates a runtime error.
Clear Resets all object properties.
Syntax :- Server.ScriptTimeout=NumSeconds
The Methods of Server object :-
CreateObject :- The CreateObject method creates an
instance of a server component. If the component has
implemented the OnStartPage and OnEndPage methods, the
OnStartPage method is called at this time.
Syntax :- Server.CreateObject(progID)
HTMLEncode :- The HTMLEncode method applies HTML
encoding to a specified string.
Syntax :- Server.HTMLEncode(string)
MapPath :- The MapPath method maps the specified
relative or virtual path to the corresponding physical
directory on the server.
Syntax :- Server.MapPath(path)
URLEncode :- The URLEncode method applies URL encoding
rules, including escape characters, to a specified string.
Syntax :- Server.URLEncode(string)