I’ve read somewhere that events of ASP .NET are based on View State of ASPX page. The values of submitted controls are matched with their value of view state and if any difference is found then the corresponding event is called up.
But my question is:
“When events are really based on view state than why events are fired even when the view state is disabled using EnableViewState=false.”
Thanks,
Guru.
If you really want to understand ViewState, go through this article…
http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx
And this one is official @ msdn… http://msdn.microsoft.com/en-us/library/ms972976.aspx
What I can say is… try going through the first link that I have just shared… and by the end of that article you will have all your queries answered. I consider it the best article available on this subject.
The short answer is… the events will always be there since that is how the page lifecycle should be… in a specific order! And that is regardless of the viewstate being on or off.