From local forum i understood that PreInit can be used to handle the following
PreInit()
>Master pages can be called dynamically
>Themes can be set dynamically
>Programatically add controls to controls collection
and i read Init() is for
Init()
In this event, we can read the controls properties (set at design time). We cannot read control values changed by the user because that changed value will get loaded after LoadPostData() event fires.
Question
I am not getting the point “We cannot read control values changed by the user”.Where do
users change the value of control?.Example would help me to understand the point.
Lets say you have a textbox, a dropdownlist, some check boxes… the user enters data into them and you want to read their values by writing
this you cannot do before after the
LoadPostDatamethod has been called.This page gives a pretty good summary of the different events and what they should be used for http://msdn.microsoft.com/en-us/library/ms178472.aspx. It says that
PreInitshould be used for ie. creating dynamic controls andInitfor setting properties on them.