LZ是想在页面提交的时候得到用户选中哪个RADIOBUTTON吗?这个用不着用循环来获取吧,在RADIOBUTTON的onclick中把值保存起来就行了

解决方案 »

  1.   


     
       我说个笨方法, 每个raiobutton  不是都有名字吗?
     
         swith  raiobuttonName  
        {      case raiobutton1:
           你选中了,第一个raiobutton;
     
          case raiobutton2:
         你选中了第二个raiobutton ;
       }
      

  2.   

    获取RADIOBUTTON的选中属性,这4个RADIOBUTTON的id是不同的
      

  3.   

    //假设你要选的那个RadioButton的ID是RadioButton4
    if (RadioButton4.Checked)
    {
        //你要做的事
    }