开发者

how to preserve viewstate of radio button on postback

开发者 https://www.devze.com 2022-12-12 17:42 出处:网络
i have a radio button linked with an image in my datalist where i have enabled paging,when i click radio button and do paging,the state of ra开发者_开发技巧dio button is lost,how can i preserve the vi

i have a radio button linked with an image in my datalist where i have enabled paging,when i click radio button and do paging,the state of ra开发者_开发技巧dio button is lost,how can i preserve the viewstate of this radio button.


You'll probably need to post some code. Is your RadioButton inside a DataList item template? If so, when you do paging you are rebinding that control and everything inside it is recreated.

0

精彩评论

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