Leveraging httpModules for Better ASP.NET Applications [NOOK Book]

Overview

This Wrox Blox explains how to create different types of custom modules for ASP.NET web sites. Custom ASP.NET Modules are a great way to program advanced features to your web site. This Wrox blox discusses the difference between a custom httpModule and the Global.asax file. It also covers the steps in the ASP.NET pipeline. The examples include using a custom module to configure a site's initial settings, a background worker thread, and an IP blocker. Other examples show how to add content to the content being ...
See more details below
Leveraging httpModules for Better ASP.NET Applications

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$5.99
BN.com price
(Save 14%)$6.99 List Price
Note: This NOOK Book can be purchased in bulk. Please email us for more information.

Overview

This Wrox Blox explains how to create different types of custom modules for ASP.NET web sites. Custom ASP.NET Modules are a great way to program advanced features to your web site. This Wrox blox discusses the difference between a custom httpModule and the Global.asax file. It also covers the steps in the ASP.NET pipeline. The examples include using a custom module to configure a site's initial settings, a background worker thread, and an IP blocker. Other examples show how to add content to the content being sent to the client, URL Rewriting, and a custom error handler.

Table of Contents

Introduction to httpModules 1

How httpModules Are Processed 2

Modules versus Global.asax 3

A Minimal Custom httpModule 3

ASP.NET Page Life Cycle 5

Registering a Custom httpModule 7

Default httpModules 7

Remove Registered Modules 8

Use a Custom Module to Configure the Site 9

Creating a Background Thread Process 11

Modify Rendered Content 13

Optimizing the Response Output 16

Create an IP Filter 22

Rewrite a Request 25

A Custom Error Handler 28

Custom Modules in IIS 7 32

Summary 35

About Chris Love 36

Read More Show Less

Product Details

  • ISBN-13: 9781118035429
  • Publisher: Wiley
  • Publication date: 11/17/2010
  • Series: Wrox Blox , #95
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • File size: 891 KB

Meet the Author

Chris Love has more than 14 years of experience in software design, development and architecture. He has been the principal developer for more than 250 small and medium ASP and ASP.NET web sites over the last 7 years. These projects have exposed Chris to a wide range of Microsoft-related technologies to solve real business problems for his clients. He has learned to look objectively at his client's business and offer pragmatic suggestions to make them more efficient and profitable.
He has focused primarily on ASP.NET and VB.NET to produce the majority of his web sites. SQL Server is his database of choice, but he has valuable experience with Microsoft Access and interfacing to 3270 Main Frames as well. Other responsibilities have included managing and maintaining production Windows servers for web, database and e-mail. He manages performance, security, and spam safeguards to keep his customers operating 24/7.
Chris' clients have also relied on his experience and expertise to help develop online marketing strategies, including search engine optimization and pay-per-click campaigns. Chris has begun to leverage this experience along with his ASP.NET expertise to build his own web properties and practice his technical and marketing theories first-hand.
Chris has been active in a leadership role in a local user's group, TRINUG for more than 5 years. He served as the vice president for the first 3 years and is currently on the advisory board. He has also led monthly a Special Interest Group (SIG) where he covered practical ASP.NET programming techniques, including how to use httpHandlers, httpModules, extending the .NET framework, and using third-party tools. He frequently presents and organizes Code Camps around the country. He has recently completed his first book, ASP.NET 2.0: Your Visual Blueprint for Developing Web Applications.
Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)