HTTPHandler

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

Guest

I want to change the contents of a page using HTTPHandler. How can I get the
content of the page in ProcessRequest?

Thanks a lot!!
 
you attach a response.filter to the binary stream, convert it to a string
using stringbuilder - manipulate it and convert it back to a binary stream.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
Thanks John, I created a filter to change the contents of the page. Hwr when
I use the filter in the HTTPHandler, the page is blank.
Here is my code
public void ProcessRequest(System.Web.HttpContext context)
{
System.Web.HttpResponse objResponse = context.Response;
WebApplication2.ResponseFilter filter = new
WebApplication2.ResponseFilter(objResponse.Filter);
objResponse.Filter = filter;
}
 
Back
Top