Subject: What is Page_Init ??
Posted By: cybercross Post Date: 9/24/2004 7:22:12 AM
Hi, i am curious about this Page_Init...
can anyone tell me what this is for ?? what is the difference from page_load???

thanks in advance...

Reply By: r_ganesh76 Reply Date: 9/25/2004 1:03:56 AM
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

Go to topic 18687

Return to index page 764
Return to index page 763
Return to index page 762
Return to index page 761
Return to index page 760
Return to index page 759
Return to index page 758
Return to index page 757
Return to index page 756
Return to index page 755