IIS 6: The Complete Reference
Chapter 12: ASP Programming
- Listing 12-1: AskName.asp - Sample ASP Requesting User's Name
- Listing 12-2: ShowRequestValues.asp - ASP Listing Collection Contents
- Listing 12-3: Using AddHeader Function
- Listing 12-4: WriteCookies.asp - ASP Listing and Updating Cookies
- Listing 12-5: ReadWriteSession.asp - ASP Page Using the Session Object
- Listing 12-6: readDB.asp - ASP Opening a Recordset from a Database and Printing the Contents to the Web Browser
- Listing 12-7: Part of ReadWriteDB.asp Showing Main Entry Point of ASP
- Listing 12-8: Part of ReadWriteDB.asp - AddData Subroutine Writing Data to Database
- Listing 12-9: Part of ReadWriteDB.asp - ShowUserRecordset Subroutine Reading Database and Showing Recordset
- Listing 12-10: Part of ReadWriteDB.asp - MakeDataEntryTable Subroutine Serializing a Recordset into an HTML Table
- Listing 12-11: XMLToHTML.asp - Simple XML to HTML Transformation Performed in an ASP
- Listing 12-12: employees.xml - tblEmployee Data Serialized into an XML Document
- Listing 12-13: employeesDisplay.xsl - XSL Stylesheet to Make HTML from tblEmployee XML Document
- Listing 12-14: HTML Resulting from XSL employeesDisplay.xsl and XML employees.xml Document Transformation
Chapter 13: COM Web Programming
- Listing 13-1: clsChair With Support to Read and Write the Color to the Instance Option Explicit
- Listing 13-2: ASP DescribeChair.asp used to test the COM component ConfigSeat.DLL
- Listing 13-3: clsChair Prototypes
- Listing 13-4: IObjectConstruct_Construct event subroutine implementation in clsClass Option Explicit Implements IObjectConstruct
- Listing 13-5: Error Handling Framework
- Listing 13-6: ProcessErr Subroutine – Error Logger and Formatting
- Listing 13-7: Function CreateChair
- Listing 13-8: Function CreateNewID
- Listing 13-9: Function ExecuteCommand
- Listing 13-10: Function OpenChair
- Listing 13-11: Function GetADORecordSet
- Listing 13-12: Function GetChairState
- Listing 13-13: DescribeChairFinal.asp used to demonstrate added interface of clsChair.
- Listing 13-14: Source Code for XMLCOMChair.asp object dispatcher
- Listing 13-15: Source code for formatChair.xsl
Chapter 14: ASP.NET Web Forms
- Listing 14-1: HTML View for requestSomething.aspx
- Listing 14-2: <asp:DataGrid
- Listing 14-3: <TABLE cellSpacing="1" cellPadding="1" width="300" border="1">
- Listing 14-4: Source Code for the requestSomething.aspx CodeBehind File requestSomething.aspx.cs
- Listing 14-5: Blank AssemblyInfo.cs file
- Listing 14-6: Contents of File SimpleWF.csproj.webinfo
- Listing 14-7: Source of SimpleWF.vsdisco
- Listing 14-8: Source Code of web.config file
- Listing 14-9: Source Code for showGrid.aspx.cs after DataGrid Added in Design View
- Listing 14-10: Source Code for Subroutine LoadGrid
- Listing 14-11: Web Form Featuring the Use of the DataList Control
- Listing 14-12: HTML for datalist.aspx Featuring Data Binding Expressions
Chapter 15: ASP.NET Web Services
- Listing 15-1: Source Code of Web Service Events - File Events.asmx
- Listing 15-2: Source Code of Class Events after SQLConnection Component Added and Configured
- Listing 15-3 Using SQLConnection Object without the Designer and Obtaining Connection String from the web.config File
- Listing 15-4: web.config File With <appSettings> Element That Contains Database Connection String
- Listing 15-5: Initialization Code Generated by the VS Designer for a Data Adaptor and a Data Connection
- Listing 15-6: Initialization Code Generated by the VS Designer for a InsertEvent SQLCommand Object in Subroutine InitializeComponent();
- Listing 15-7: Add Function in Events Web Service
- Listing 15-8: Source Code for Class anEvent
- Listing 15-9: LogMessage Function of the Events Class
- Listing 15-10: Source Code for Events Add Function Test Harness - Web Form EventClient.aspx
Chapter 17: ISAPI Extensions
- Listing 17-1: HelloWorld.def Content
- Listing 17-2: Source Code for HelloWorld.cpp
- Listing 17-3: HttpExtensionProc Function Building XML Document in SEUX ISAPI Extension
- Listing 17-4: GetALLHTTPHeader Function Building XML Element in SEUX ISAPI Extension
- Listing 17-5: SEUX.DLL Output from http://amd1700v2/simpleisapi/folder1/folder2/SEUX.dll/PATH_INFO?parm1=value1&parm2=value
- Listing 17-6: Source Code for Function GetHeaderValuePair
- Listing 17-7: Function GetECBElement
- Listing 17-8: Function ValidateValue
- Listing 17-9
- Listing 17-10: Function SendResponse