如何控制RadioButtonList的选项
来源:百度知道 编辑:UC知道 时间:2024/05/15 02:23:51
请问我怎么用代码控制RadioButtonList中哪一项被选中,比如RadioButtonList中又男,女两项,用代码选定男怎么写
rdlist.SelectedValue = "男";
rslist.SelectedIndex=0;//假如你的选项"男"的索引是0的话
rdlist是RadioButtonList的一个实例
楼上回答正确,只要中间那行就行了
...groupname要是同一个组...