Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 25, 2012 04:58 AM by Careed
Apr 25, 2012 04:22 AM|LINK
Is there any link which provide detailed life cycle information of ASHX just like
this ASPX life cycle overview.
I want to compare both life cycle. I know ASHX life cycle would be subset of ASPX life cycle.
Any information on above would greatly appreciated.
Thanks & Regards
Apr 25, 2012 04:50 AM|LINK
Page is a special case handler.
Generic Web handler (*.ashx, extension based processor) is the default HTTP handler for all Web handlers that do not have a UI and that include the @WebHandler directive.
ASP.NET page handler (*.aspx) is the default HTTP handler for all ASP.NET pages.
Among the built-in HTTP handlers there are also Web service handler (*.asmx) and Trace handler (trace.axd)
An ASP.NET HTTP handler is the process (frequently referred to as the "endpoint") that runs in response to a request made to an ASP.NET Web application. The most common handler is an ASP.NET page handler that processes .aspx files. When users request
an .aspx file, the request is processed by the page through the page handler.
The next image is illustrates this:
SEE HERE MORE EXPLANTION
Apr 25, 2012 04:58 AM|LINK
An ASHX file is just a handler, so it only has one required method: ProcessRequest. It doesn't really have a "life cycle", except that the object is created, the ProcessRequest method is called, and the object is destroyed/finalized.