Heres a very thorough explanation
http://www.devx.com/vb2themax/Article/19901/0/page/1
--
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"vibs" <vibs@discussions.microsoft.com> wrote in message
news:BCE3C2D5-4BBB-4347-A6AC-ED78E6871B11@microsoft.com...[color=blue]
> 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;
> }
>
> "John Timney (ASP.NET MVP)" wrote:
>[color=green]
>> 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
>>
>> "vibs" <vibs@discussions.microsoft.com> wrote in message
>> news:2F9882BA-28F5-471A-917D-EEEDA176FCC0@microsoft.com...[color=darkred]
>> >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!![/color]
>>
>>
>>[/color][/color]