Page 1 of 16
Unit 1: ASP – AN INTRODUCTION
Active Server Pages (ASP) is a technology that enables the development of dynamic web sites.
ASP was developed by Microsoft to allow server side development. ASP files are HTML files with
special tags containing source code that provide the dynamic content.
Previously, static web pages were displayed. ASP was developed by Microsoft to allow HTML
developers to easily provide dynamic content supported as standard by Microsoft's free Web Server
Internet Information Server (IIS).
How ASP files are processed?
When a browser requests an ASP file from a web server, the following steps take place:
• Your browser finds the appropriate web server, and to that server says, "I need to look at
the file /default.asp, please."
• The web server locates the file /default.asp and parses out the ASP code, turning all of the
ASP code into applicable HTML code. ASP code is code in between the ASP script
delimiters (<% ... %>). Since all of the ASP is parsed into HTML, the client sees absolutely
no ASP code!
• The browser collects this HTML text and parses it, determining how to display those
colorful animated gifs and blinking text we've all come to love.
You'll note that there is just three steps, although the second step is a bit more involved. The whole
process starts with the client requesting a file with a .ASP extension. The web server notes the
extension, and since it has a .ASP extension (as opposed to a .txt, .htm or .html), the server parses
the contents of the requested file before sending it to the client. So when you view an ASP file
through IE or Netscape, your browser doesn't know that the .asp file is any different from a
standard .html file!
Prof. Mukesh N. Tekwani
Page 2 of 16
What is client-side scripting?
1. Client-side s