List of Listings


Chapter 2: Introducing ASP.NET Applications

Listing 2-1: A Custom HTTP Handler
Listing 2-2: The Code-Behind File for ap_login.aspx
Listing 2-3: Generating a 128-Character Cryptographic Key
Listing 2-4: A Simple Machine.config File

Chapter 3: Writing Optimized Data Access Code

Listing 3-1: Using the Command Object's ExecuteReader() Method
Listing 3-2: Updating the Database Using the SqlCommandBuilder Class
Listing 3-3: Using the QueryProducts() Method
Listing 3-4: The Schema File
Listing 3-5: Using an XSD Schema
Listing 3-6: Creating a Filtered View of a DataSet
Listing 3-7: Trapping and Iterating Through Exceptions

Chapter 4: Optimizing Application and Session State Management

Listing 4-1: The BindDataGrid() Function
Listing 4-2: Seeing Global.asax in Action
Listing 4-3: Managing Unhandled Exceptions with the Application_Error() Event Handler
Listing 4-4: Creating a Custom Base Class for the Global.asax File

Chapter 5: Caching ASP.NET Applications

Listing 5-1: Using the Accept-Language Header
Listing 5-2: The *.ascx Page
Listing 5-3: The Code-Behind File for the User Control
Listing 5-4: Registering and Inserting the Control
Listing 5-5: The *.axcx Page
Listing 5-6: The Code-Behind File
Listing 5-7: ap_OutputCaching4.aspx
Listing 5-8: Caching with the HttpCachePolicy Object
Listing 5-9: Caching with Dependency Expiration
Listing 5-10: SalesQuery.xml
Listing 5-11: Setting Up Callback Notification
Listing 5-12: Web Service Caching Using a Web Application Client
Listing 5-13: Calling GenerateDataSet()

Chapter 6: Writing Optimized Web Services

Listing 6-1: GetEmployeeSales()
Listing 6-2: Calling GetEmployeeSales()
Listing 6-3: The Shortened ListMostExpensiveProducts()
Listing 6-4: The onProductListResult() Custom Callback Function
Listing 6-5: Pseudo-Script for Populating Linked DropDownList Controls Using Web Method Calls
Listing 6-6: The Abbreviated SecureNorthwind.asmx
Listing 6-7: ap_WSGetMostExpensiveProduct.aspx

Chapter 7: Stress Testing and Monitoring ASP.NET Applications

Listing 7-1: The MakeIE60GETRequest() Function
Listing 7-2: The SendRequest() Function
Listing 7-3: Dynamic Script to Test Multiple Pages



Performance Tuning and Optimizing ASP. NET Applications
Performance Tuning and Optimizing ASP.NET Applications
ISBN: 1590590724
EAN: 2147483647
Year: 2005
Pages: 91

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net