radiobuttonlist 默认选中第一个

2024-12-18 17:54:29
推荐回答(1个)
回答1:

RadioButtonList theRadio;
theRadio = (RadioButtonList)FormView3.FindControl("RadioButtonList1");
String SelWP = theRadio.Items[0].ToString();
//接受值的方式为:
String SelWP = theRadio.Items[0].Value;