Page events, such as Initand Load, will always be fired before the event handler, which raised the postback. This is the basis of the page life cycle (for a visual presentation of Peter Bromberg, see here ). Most developers new to ASP.NET have a serious problem understanding and properly handling this "fix".
:
. Page_Init ( BindData() ), . , . IOW, Page_Init , .
: BindData() ImageButton . ImageButton_Click. .
. ImageButton_Click , BindData() , .
, :
( ):
Page_InitBindData() - Eventhandler ImageButton.ImageButton_ClickBindData()