FROM http://stackoverflow.com/questions/5469491/aspx-vs-ashx-main-difference
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)
MSDN says:
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.
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.
Christopher Reed, MCT, MCPD, MCTS, Microsoft Specialist, MTA
"The oxen are slow, but the earth is patient."
Nandip Makwa...
Participant
1267 Points
293 Posts
Life Cycle difference between ASPX and ASHX
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
Software Engineer by Profession, Learner by Passion!
shabirhakim1
Star
13504 Points
2149 Posts
Re: Life Cycle difference between ASPX and ASHX
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)
MSDN says:
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:
The next image is illustrates this:
SEE HERE MORE EXPLANTION
http://shaalinis.blogspot.in/2008/12/difference-between-aspx-and-ashx-files.html
Careed
All-Star
18774 Points
3637 Posts
Re: Life Cycle difference between ASPX and ASHX
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.
"The oxen are slow, but the earth is patient."