菜鸟问题:怎样判断同一个组里的哪个radioButton被选中? 应该是每个单选钮有个名字,选中的那个用request得到他的名字 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 为什么不用radioButtonList呢?这样好办多了,ASP.NET中的控件组好像不好控制 public void Button1_Click (object sender, System.EventArgs e){ if (RadioButton1.Checked) { Label1.Text = "You selected " + RadioButton1.Text; } else if (RadioButton2.Checked) { Label1.Text = "You selected " + RadioButton2.Text; } else if (RadioButton3.Checked) { Label1.Text = "You selected " + RadioButton3.Text; }} memgarden(魔鬼撒旦):如果我的组里有100个RadioButton总不能写一百个if语句吧?应该能根据组名来判断的吧 用这个!!!RadioButtonList1.SelectedItem.Text 数据循环添加 水晶报表XI R2 版与水晶报表11.5版是一版吗? 他们的注册号是一样的吗? 文章分页和三级联动的搜索问题 高分求动态添加和可以关闭的页面选项卡,最好是用frame的。 显示出选中的复选框的值 (要求必须使用HTML服务器控件,如下) 为什么不行?? .net中如何使用.asp的网页? 未能在视图中打开 文件上传到服务器后再读取出了问题,各位大佬看看!! 请问怎样做到点击 DataGrid 的某一行能够让它高亮显示? 大神求救啊,query查询数据库数据之后,使用todictionary的方法 请问在ASP.NET中如何实现对字符串进行3DES加密 怎样实现WEb对话框
这样好办多了,ASP.NET中的控件组好像不好控制
{
if (RadioButton1.Checked) {
Label1.Text = "You selected " + RadioButton1.Text;
}
else if (RadioButton2.Checked) {
Label1.Text = "You selected " + RadioButton2.Text;
}
else if (RadioButton3.Checked) {
Label1.Text = "You selected " + RadioButton3.Text;
}
}
RadioButtonList1.SelectedItem.Text