Only available on StudyMode
  • Topic: Internet Information Services, Active Server Pages, Microsoft Access
  • Pages : 14 (4672 words )
  • Download(s) : 80
  • Published : March 27, 2013
Open Document
Text Preview
GURU NANAK DEV ENGINEERING COLLEGE, LUDHIANA DEPTT. OF CSE/IT LECTURE NOTES Subject: Web Administration Topic: Active Server Pages (ASP) Subject Incharge: Er. Parminder Kaur Wadhwa, Lecturer (CSE/IT) ___________________________________________________________________________________ TABLE OF CONTENTS 1. Introduction to ASP Technology 2. ASP Objects 2.1 The Request Object 2.2 The Response Object 2.3 The Server Object 2.4 The ASPError Object 2.5 The Application Object 2.6 The Session Object 3. The Scripting Object Model (SOM) and SOM objects 4. Database Access in ASP 4.1 ActiveX Data Object (ADO) 4.2 The ADO Object Model 4.3 Accessing a Database from an ASP Page 4.4 To Create an ODBC Database Connection 4.5 To Create an ODBC Connection to MS Access Database 4.6 To create a DSN-less Database Connection

_______________________________________________________________________ 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

dynamic applications by using the highly integrated nature of ASP and HTML, JavaScript/VBScript and databases. ASP was initially marketed as an add-on to Internet Information Services (IIS) via the Windows NT 4.0 Option Pack, but has been included as a free component of Windows Server since the initial release of Windows 2000 Server. Web pages with the ".asp" or ".aspx" extensions use ASP. ASP has gone through three major releases: • • •

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...
tracking img