应该是每个单选钮有个名字,选中的那个用request得到他的名字

解决方案 »

  1.   

    为什么不用radioButtonList呢?
    这样好办多了,ASP.NET中的控件组好像不好控制
      

  2.   

    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;
       }
    }
      

  3.   

    memgarden(魔鬼撒旦):如果我的组里有100个RadioButton总不能写一百个if语句吧?应该能根据组名来判断的吧
      

  4.   

    用这个!!!
    RadioButtonList1.SelectedItem.Text