日期:2014-05-19  浏览次数:20454 次

怎样验控RadioBurttonList选中项
当没有选择单选按钮时,怎样给出提示?

------解决方案--------------------
在服务器端可以这样验证
private void Button1_Click(object sender, System.EventArgs e)
{
if(RadioButtonList1.SelectedIndex == -1)
Label1.Text = "请选择 ";
else
...
}