RadioButtonList普通用法
来源:互联网 发布:剑三商城捏脸数据非法 编辑:程序博客网 时间:2024/04/28 03:18
RadioButtonList普通用法
在Aspx文件中:
<asp:RadioButtonList id="rblSex" runat="server" RepeatDirection="Horizontal" CssClass="RadioButtonList">
</asp:RadioButtonList>
在CS文件:
protected System.Web.UI.WebControls.RadioButtonList rblSex;
//绑定性别
this.rblSex.DataSource = this.GetData(1,"staff","sex");//取得数据集
this.rblSex.DataValueField = "Value";
this.rblSex.DataTextField = "Item";
this.rblSex.DataBind();
//读取姓别
for(int i=0;i<this.rblSex.Items.Count;i++)
{
if(this.rblSex.Items[i].Value == DataTable.Row[i][0])
{
this.rblSex.SelectedItem.Selected = false;
this.rblSex.Items[i].Selected = true;
}
}
- RadioButtonList普通用法
- RadioButtonList的普通用法
- RadioButtonList用法
- RadioButtonList用法总结
- RadioButtonList
- RadioButtonList
- RadioButtonList
- jQuery中RadioButtonList的功能及用法
- Asp.net 控件用法汇总-RadioButtonList、DropDownList、button、Checkbox...
- 普通绑定用法:
- frameset普通用法
- CGContextRef普通用法
- 普通Socket的用法
- Android spinner 普通用法和自定义用法
- 自定义RadioButtonList
- RadioButtonList专题
- RadioButtonList控件
- RadioButtonList控件
- jdk1.5的下载地址
- 来吧,移动开发 [转]
- 两道数据结构面试题
- 第十一章: Collections of Objects (2.1容器类)
- 迭代的概念
- RadioButtonList普通用法
- 堆和栈的区别
- 第一天程序員生活!
- 我的编程爱好者Blog
- 随想
- 常用的一些javascript小技巧(转)
- 最近的生活
- 第一份工作
- php连接数据库