GridView嵌套CheckBox实现复选:
需AUTOPOSTBACK=TRUE;或者使用UpdatePanel实现无刷新执行
GridView嵌套RadionButton实现单选:
此处应打破常规思路,不使用RadionButton而选用input
后台取选定值:
string strDriverValue = Request.Form["rbnDriver"];
本文介绍了如何在GridView中嵌套CheckBox实现复选功能,并探讨了RadioButton在GridView中的局限性及其替代方案。通过示例代码展示了如何使用input元素实现单选功能,并解释了如何获取选定值。
GridView嵌套CheckBox实现复选:
需AUTOPOSTBACK=TRUE;或者使用UpdatePanel实现无刷新执行
GridView嵌套RadionButton实现单选:
此处应打破常规思路,不使用RadionButton而选用input
后台取选定值:
string strDriverValue = Request.Form["rbnDriver"];

被折叠的 条评论
为什么被折叠?