The important points about ASP is that the script runs entirely on a server, thus
protecting your intellectual property and shielding you from browser differences
you had to account for when writing client-side code. Your entire server-side
code is processed and only plain HTML- or whatever kind of content you chose to
generate-is sent to the client.
the web server receives the request for the xyz.asp page, it invokes the ASP engine,
which in turn invokes the appropriate scripting language to execute the server-side
code you added to xyz.asp.
of the big advantages of ASP is that it is language agnostic, meaning that the
program isnt limited to the Microsoft-provided standard scripting languages,
such as VBScript. It can be extended by the scripting languages of your choice,
as long as this scripting language supports the ActiveX scripting model.
a scripting language by itself doesnt know what a web server is (or how
to send data to a client, for example), the ASP engine supplies objects and makes
them available to your code-allowing you to interact with the clients browser,
accessing server functionality, and more.
server pages supplies the following six built-in objects for request and response
processing as well as for creating and managing a web application:
- stores application wide state information.
New Team maintains information on a per-user basis in this object. A session
is the personal storage of each user visiting your site.
Request - consists
of all information that is passed to the server from the browser. Allows acess
to data that has been sent with forms.
Response - writes HTML and various
other information, including cookies and header, back to the client.
provides server functionally for use in active server pages.
allows you to commit or abort transactions, which are managed by transaction server.
objects are available immediately in all your ASP pages, with no need to create
them before they can be used. How can you access these objects? You can do so
by adding code to your ASP pages written in a scripting language.
language in ASP
Web site level- changes the default scripting languages for all pages for a specific
web site. * File level- defines the scripting languages for a single page. *
Function level- sets the scripting languages only for a specific function of a