Page itself is sample of existing Httphandler, so your code doesn't really
do anything else that the code shows (Page's equivalent implementation
contains dealing with page lifecycle etc etc, a ton of logic) Maybe you want
to redirect to the correct page? With
context.Server.Transfer("page.aspx");
Anyways, if your intention is to add some logic to the http application
lifecycle instead of replacing the original HttpHandler, you'd want to use
an HTTP Module
--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"zlf" <> wrote in message
news:eOX90da$...
> Hello,
> I try to use a custom HttpHandler to add something to session, then
> display the original page.
>
> public void ProcessRequest(HttpContext context)
> {
> context.Session["test"] = "test";
> }
>
> But, a empty page is rendered with this HttpHandler, should I add some
> additional codes to ProcessRequest to make it display the page correctly.
>
> Thanks
>