In this blog i will show you my work about the order of events when asp.net page is called.
To achieve this i have created a normal asp.net page. There i have added 2 labels and a button and then i have analysed in which order page events called.
HTML: -
Code Behind Page: -
The output of the above code when page loaded first time is: -
When click button then output would be: -
Now you may got confused why after when unload event get called, so the answer is "Response is not available in this event".
To achieve this i have created a normal asp.net page. There i have added 2 labels and a button and then i have analysed in which order page events called.
HTML: -
Code Behind Page: -
The output of the above code when page loaded first time is: -
When click button then output would be: -
Now you may got confused why after when unload event get called, so the answer is "Response is not available in this event".