Fire PageEvent Manually through HttpHandler

  • Thread starter Thread starter moid
  • Start date Start date
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,
 
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
 
Back
Top