Wrox Programmer Forums
|
BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9
This is the forum to discuss the Wrox book Professional ASP.NET 3.5: In C# and VB by Bill Evjen, Scott Hanselman, Devin Rader; ISBN: 9780470187579
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2010, 07:25 AM
Registered User
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 27: Modules And Handlers - Listing 27.2

The listed code for 'Modifying HTTP Ouput' does not work for me.

Whereas if I change,

context.PreSendRequestContent += new EventHandler(context_PreSendRequestContent);
to
context.PostRequestHandlerExecute += new EventHandler(context_PostRequestHandlerExecute);

and

_current.Response.Output.Write(message);
to
HttpContext.Current.Response.Output.Write(message);

everythings fine!

(_current throws an 'object reference not set...' exception on the second run)

Did I do anything wrong?

Last edited by Nikhil; February 4th, 2010 at 07:27 AM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
CHAPTER 2 page 26 -27 joopthecat BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 3 August 3rd, 2009 07:03 PM
where are the source code for Chapter 27 ? jamesxd BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 June 20th, 2008 08:23 AM
Chapter 27 Run-time Error DaveHowland BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 7 February 16th, 2008 09:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.