ASP.Net C# gridview

cpeng_li

New Member
I have a gridview with a linkbutton inside a \[code\]<HeaderTemplate>\[/code\]. There is an event handler for a click on this button. Now if I bind data to the gridview on every \[code\]Page_Load\[/code\] event, then this event fires. But if I bind data to the gridview inside \[code\]if (Page.IsPostBack == false)\[/code\], then this event doesn't fire.Is it that after the pageload it realizes there is no data in the gridview hence ignore events generated from the grid? How do I slove the problem ?
 
Back
Top