The first method that is executed when a page is requested is the classes constructor. However, inside the constructor the controls defined inside your aspx pages would not have initalized. You will get the Initialized values
Page_Init fires before the Page_Load event. When the Page_Init event fires, the controls defined in your page will be initialized. But you will not get the values which have been changed in the postback (those changed by the user).
in the Page_Load event, You will be writing most of the code. But in most of the cases you will be checking the value of IsPostBack to avoid un-necessary exucution of the code
Regards
Ganesh
|