开发者

Will DataGrid Events stop firing once the grid is placed in an UpdatePanel?

开发者 https://www.devze.com 2023-03-04 21:47 出处:网络
Will DataGrid Events like OnPageIndexChanged,OnItemCreated,OnItemCommand,OnItemDataBound stop firing once the grid is placed in an UpdatePan开发者_如何学编程el? You might need to register each and ev

Will DataGrid Events like OnPageIndexChanged,OnItemCreated,OnItemCommand,OnItemDataBound stop firing once the grid is placed in an UpdatePan开发者_如何学编程el?


You might need to register each and every LinkButton (I'm asssuimg you're using a LinkButton) as an AsyncPostBackTrigger. After each row is bound in your DateGrid (ie: onRowDataBound), you'll need to search for the LinkButton and register it through code as follows:

LinkButton lb = e.Row.FindControl("MarkAsCompleteButton") as LinkButton;  
ScriptManager.GetCurrent(this).RegisterAsyncPostBackControl(lb)
0

精彩评论

暂无评论...
验证码 换一张
取 消