balu
balu

Reputation: 1

how to get page html in httpmodule?

I want to replace commented html token with text in httpmodule endrequest. How to get the page html in httpmodule?

Upvotes: 0

Views: 1593

Answers (1)

Oleks
Oleks

Reputation: 32323

You could use HttpResponse.Filter for this:

This property gets or sets a wrapping filter object that is used to modify the HTTP entity body before transmission.

Here are several articles which could help you with this:

  1. Modifying the HTTP Response Using Filters
  2. Producing XHTML-Compilant Pages With Response Filters
  3. Removing White Chars from ASP.NET Output using Response.Filter property

Upvotes: 4

Related Questions