Accessing a master page from httphandler
Posted
by vondip
on Stack Overflow
See other posts from Stack Overflow
or by vondip
Published on 2010-04-09T06:38:47Z
Indexed on
2010/04/09
6:43 UTC
Read the original article
Hit count: 411
Hi All,
I am developing a small application in asp.net (writing in c#). In my application I am using jquery to perform asynchronous call to the server. I have an http handler that listens in to the requests and does what it needs to do.
Problems start when in the handler I need to access information stored in the page , from where the asynchronous call started. When I try this:
Page page = HttpContext.Current.Handler as Page;
I don't get a page.
How else can I access the page itself?
Thank you
© Stack Overflow or respective owner