asp.net获取radiobuttonlist选中值
来源:互联网 发布:5sa1533支持哪些网络 编辑:程序博客网 时间:2024/06/09 17:07
今天组里的一个同事问我问什么他的radiobuttonlist获取不到选中的值,我说状态已经禁用了,所以获取不到。
但是问题来了,viewstate禁用了,为什么手动添加的可以获取到,从服务器提取出数据后绑定的,获取不到?
<asp:RadioButtonList id=RadioButtonList1 runat="server"><asp:ListItem value=1>Item 1</asp:ListItem>
<asp:ListItem value=2>Item 2</asp:ListItem>
<asp:ListItem value=3>Item 3</asp:ListItem>
<asp:ListItem value=4>Item 4</asp:ListItem>
<asp:ListItem value=5>Item 5</asp:ListItem>
<asp:ListItem value=6>Item 6</asp:ListItem>
</asp:RadioButtonList>
这样可以在后台用this.RadioButtonList1.selectedIndex
但是绑定数据源就获取不到了,目前不知道是为什么
再一个问题就是如何获取选中的值了,手动添加当然可以this.RadioButtonList1.selectedValue
但是数据绑定的如何获取,当然是使用request.form[this.RadioButtonList1.UniqueID]
- asp.net获取radiobuttonlist选中值
- 用javascript获取asp.net中RadioButtonList的选中值
- 用javascript获取asp.net中RadioButtonList的选中值
- 用javascript获取asp.net中RadioButtonList的选中值
- ASP.NET中JS获取服务器控件radiobuttonlist和DropDownList选中值
- js获取RadioButtonList选中值
- javascript中获取radiobuttonlist选中值
- JS获取RadioButtonList的选中值
- JS如何获取RadiobuttonList的选中值
- Asp.net js获取CheckBoxlist 和 Radiobuttonlist
- 在asp.net中如何获取asp:DataList中子控件asp:RadioButtonList的值
- 获取和设置asp:RadioButtonList的值
- 学习Jquery - 获取RadioButtonList中Radio项的选中值
- jquery 获取 GridView 或 Repeater 里边的 RadioButtonList 选中值
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- js 获取 asp.net 服务器端控件 Label 与 TextBox RadioButtonList 与 DropDownList 的值
- js获取asp.net服务器端控件Label,TextBox,RadioButtonList,DropDownList的值
- 掌握 Linux 调试技术
- 什么是模糊球路由器(fuzzball router)
- 如何强命名程序集(转)
- MySQL数据库权限体系入门(1)---工作原理
- 一步步学Qt,第十天-MYSQL数据库操作
- asp.net获取radiobuttonlist选中值
- 【转】Robot Framework 快速入门[转]
- 使用vector和类模板存放mysql查询结果集,方便管理
- centos下 MySQL 5.5.14 编译安装
- 关于程序员的笑话(三)
- oracle查询当前用户的连接情况
- 两个数据表,比较相同字段;如果存在相同字段,删除原有表数据
- SilverLight-遍历本地文件夹
- HTML的autocomplete属性