Chapter 15, Page 554 - Button Click Event
I must be totally missing something, but I'm confused about these statements in the book:
On postback, the story looks quite different. When you click the button to cause a postback, the following events are raised:
...
GridView1_RowCreated
GridView1_RowCreated
GridView1_RowCreated
GridView1_RowCreated
Page_Load
Button1_Click
Page_PreRenderComplete
â â â â â â â â -
Itâs important to understand and remember that user-triggered control events like a Button controlâs Click or a SelectedIndexChanged of a DropDownList occur after the Load event of the Page.
-----------------------------------------------
But me clicking the button obviously initiates the PostBack. So how is the event happening after the subsequent load of the page? The click is what cause the page to load, no? Very confused.
|