Click here to Skip to main content
15,915,319 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all. I do have a small doubt regarding ASP.NET Page Life Cycle events. When I gone through the coding of an application i came to see both overriding of OnInit() method and also Page_Init event in same Page. I thought both the approaches serves the same purpose and I have seen mostly the implementation of overriden OnInt() only but not both. Most of the articles in the web explains about the better approach in these two but no one explained what happens if we implement both in a Page. Also explain what is the difference between writing some code before calling base.OnInit(e) and after calling base.OnInit(e). What does this situation means. Can anyone please help me regarding this.



Thanks in Advance.
Posted

1 solution

Have a look at below discussion on the same topic.

http://stackoverflow.com/questions/1255758/page-init-vs-oninit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900