自考学位英语保过:RadioButtonList(C#)获取它的选定值。

来源:百度文库 编辑:神马品牌网 时间:2024/05/14 17:45:36
数据是在程序中绑定的
ArrayList myArrayList=new ArrayList();
myArrayList.Add("男");
myArrayList.Add("女");
RadioButtonList1.DataSource=myArrayList;
RadioButtonList1.DataBind();

我用过
RadioButtonList1.SelectedItem.Text
RadioButtonList1.SelectedItem.tostring()
都提不出来,提示对象未引入。

RadioButtonList1.SelectedValue