怎样验控RadioBurttonList选中项
当没有选择单选按钮时,怎样给出提示?
[解决办法]
在服务器端可以这样验证
private void Button1_Click(object sender, System.EventArgs e)
{
if(RadioButtonList1.SelectedIndex == -1)
Label1.Text = "请选择 ";
else
...
}
发布时间: 2011-12-10 00:07:34 作者: rapoo
怎样验控RadioBurttonList选中项
当没有选择单选按钮时,怎样给出提示?
[解决办法]
在服务器端可以这样验证
private void Button1_Click(object sender, System.EventArgs e)
{
if(RadioButtonList1.SelectedIndex == -1)
Label1.Text = "请选择 ";
else
...
}