I am a bit confused about these two sequence of events or processes happening in conjunction to each other. Does the page handler executes first or does the somepage.aspx get execute first or do they happen simultaneously?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you request a resource with a .aspx extension, the ASP.net runtime uses the default page handler to process the request. So the answer to your question is that the page handler is hit first, and then it deals with the .aspx file you requested.
Edit:
In the tutorial you link to in your comment, this is the relevant paragraph that spells this out:
It’s the handler’s ProcessRequest method that runs the aspx page through the page lifecycle.
This MSDN page has a good description of the process, as well. See step 10 & 15 of the box that says “The request is processed by the HttpApplication pipeline.”