hi,
1) I found two articles, each categorizing a bit differently the two types of postback events:
One resource says the two types of postback events are Changed event ( where controls implement IPostbackDataHandler ), which fires when data is changed between postbacks, and then are Raised events ( where controls implement IPostbackEventHandler ), which are raised by server controls for whatever reason the control sees fit
Other article says the two types are Immediate response events and Change events. According to this article, Immediate response events are ones that actually trigger a postback
a) Which categorization is correct?
b) If second article was correct, then if TextBox control had AutoPostBack=”true”, shouldn’t then TextChanged also be considered Immediate response event?
2) When page is submitted back to the server due to some user action, then at Event handling stage, ASP.NET raises events of all controls that got their data changed since the last postback. The event that actually triggered a postback ( such as Click event ) is raised last
a) But what if user selecting a row in GridView caused a postback? When GridView causes a postback due to Row selection, then unlike simpler controls ( like TextBox or Button ), that postback causes GridView to fire not one, but several server-side events during Event handling stage ( SelectedIndexChaning and SelectedIndexChanged).
Which of these GridView’s events is considered by ASP.NET to be the one that caused a postback?
thank you