开发者

How to get header template control on postback from another control on aspx page

开发者 https://www.devze.com 2023-02-18 00:38 出处:网络
Im wondering how to get a label control that is in a header template in a datalist on an aspx page. I need the control text to change when the user checks a checkbox outside of the list on the page so

Im wondering how to get a label control that is in a header template in a datalist on an aspx page. I need the control text to change when the user checks a checkbox outside of the list on the page somewhere. I tried It开发者_Python百科emdatabound, but I dont want to have to rebind the list everytime the user checks the box (lots of slow reaction time)

Any ideas? Thanks


try to override DataList_ItemCreated where ListItemType == ListItemType.Header

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.datalist.itemcreated.aspx

0

精彩评论

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