View Single Post
  #1 (permalink)  
Old July 20th, 2017, 04:13 PM
N_B N_B is offline
Authorized User
Points: 103, Level: 2
Points: 103, Level: 2 Points: 103, Level: 2 Points: 103, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2016
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote