Fire PageEvent Manually through HttpHandler

M

moid

Sir,
I want to implement FrontContrller but I need to fire page.init and page.load event manually, as u mentioned in this exemaple (MSDN Link Below)..
But i got error : error CS0103: The name 'PageInit' does not exist in the class or namespace 'FrontControllerCSharp.Handler'

how the page.init and page.load event will be triggered here .

I will be very thankfull if u provide example through both IHttpHandler and IHttpModule.

msdn link :
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003OCT.1033/dnaspp/html/dngrfTheASPNETHTTPRuntime.htm

Thanks and Regards,
 
N

Natty Gur

Hi,

You cant call page class events manually from your HttpHandler . The
only way to do so, is by transfer / executes / redirect the call from
your front controller to an existing page. Although Pages are handlers
(implement IHttpHandler ) they inherits from Page class that declare all
Page events, Your HttpHandler just implement IHttpHandler.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)58-888377
 

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,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top