HttpModule read Response without using Response.Filter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello

Can anyone suggest a way to read the response (I want to write it to a file)
in an HttpModule but without using a response filter?

I can't see any other way to get at the response stream.

Thanks
Brian Norman
 
You can capture the output by overriding the Render() method of the page object which would give you access to the text.

http://west-wind.com/weblog/posts/481.aspx

I'm not sure if you could do this from within an httpmodule as the information at this point is already in the stream.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top