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也是同样,应该懂得一个就知道怎么做,请各位大侠帮帮忙
或JS遍历
添加runat="server"
FindControl("") ad HtmlInputRadio
//这样可以取到被选中或被勾选中的对象value值,如果是复选框,得到的是以逗号分隔的字符串
Request["radiobutton"].ToString();