_______________________________________________________________________ ACTIVE SERVER PAGES (ASP)
1. Introduction to ASP Technology
Active Server Pages (ASP) is Microsoft's server-side script engine for dynamically-generated web pages. ASP is a technology for interacting with the user by intercepting incoming requests and processing outgoing responses. It is not a programming language. It is more like the glue that holds together scripting objects, components and interactions with the Web Server. ASP helps us to make
ASP version 1.0 (distributed with IIS 3.0) in December 1996 ASP version 2.0 (distributed with IIS 4.0) in September 1997 ASP version 3.0 (distributed with IIS 5.0) in November 2000
ASP 3.0 is currently available in IIS 6.0 on Windows Server 2003 and IIS 7.0 on Windows Server 2008. ASP.NET is often confused as the newest release of ASP, but the technologies are very different. ASP.Net relies on the .Net Framework and is a compiled language, whereas ASP is strictly an interpreted scripting language. The ASP code delimiters contain % sign. Simple ASP Programs: Program 1 Output: The example prints "Hello World!" into the body of an HTML document. ___________________________________________________________________________________
2. ASP Objects
ASP has various built-in objects. These are as follows:1. The Request Object 2. The Response Object 3. The Server Object
4. The ASPError Object 5. The Application Object 6. The Session Object These objects are used to perform highly useful functions, such as:(a) capturing data submitted by users, (b) responding to user inputs, (c) managing applications and session, and (d) manipulating the server, etc. ___________________________________________________________________________________
2.1 The Request Object
When a link is clicked or a form is submitted, the request object captures all the data within the request, including:(a) the HTTP variables, (b) Cookies, (c) Query Strings, (d) Security Certificates and (e) certain properties of the request that can be used to manage communications. All this data is then immediately available to the activated ASP Script. Request Object Collections The request object includes five built-in collections, each of which captures specific kinds of data:(a) QueryString (b) Format (c) Server Variables (d) Cookies (e) Client Certificate (a) QueryString: The name/value pairs attached to the end of a requested URL, or, the name/value pairs resulting from the submission of a form where the method equals GET. Program: The name/value pairs attached to the end of a requested URL.
Example Ouput: Example color=green Program: The name/value pairs resulting from the submission of a form...