radio的代码如下:<label>
            <input type="radio" name="radiobutton" value="radiobutton"  onclick="javascript:this.checked=false"   />
            选择一</label>
          <label>
          <input type="radio" name="radiobutton" value="radiobutton"  onclick="javascript:this.checked=false"   />
          选择二</label>
          <label>
          <input type="radio" name="radiobutton" value="radiobutton" onclick="javascript:this.checked=false"  />
          选择三
</label>此代码我放在一下repeater里面,repeater正确绑定取得了数据,然后我想根据取得的数据确定选择哪一个,怎么做.另外,checkbox也是同样,应该懂得一个就知道怎么做,请各位大侠帮帮忙

解决方案 »

  1.   

    request.form取值
    或JS遍历
    添加runat="server"
    FindControl("") ad HtmlInputRadio
      

  2.   

    在后台里的方法
    //这样可以取到被选中或被勾选中的对象value值,如果是复选框,得到的是以逗号分隔的字符串
    Request["radiobutton"].ToString();
      

  3.   

     Request.Form.GetValues("radiobutton");获得选中,返回是一个数组。。接下来你不要说你不会写了
      

  4.   

    各位好像理解错我的问题了.我是把html控件的radio控件和checkbox控件放在repeater里面.然后通过repeater绑定得的值来决定选中了哪个.只是做显示用,不作获取值用啊