HTTP Handler

G

Guest

I have created a filter to change the contents of the page. When
I use the filter in the HTTPHandler, the page is blank. However, it works
correctly on the page load. Any pointers??

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;
}
 
W

William F. Robertson, Jr.

The code you have posted is writing nothing back to the browser, so a blank
page is expected.

You might want to look at a HttpModule, and wire to the BeginRequest event
to attach your filter.

bill
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top