我要循环判断RadioButtonList 看看是否RadioButtonList有被选中的值 应该如何写代码 在线等 高手请进

解决方案 »

  1.   

    if(Rd.SelectedIndex>=0) //代表选中,否则未选中
      

  2.   

     foreach (ListItem listitem in (RadioButtonList控件名.Items)
                        {
                            if (listitem.Selected == true)
                            {
                                处理过程;
                            }
                        }