function selectSingleRadio(rbtn) {
var radio = document.getElementsByTagName("radio");
var arrAll = document.all;
for (i = 0; i < arrAll.length; i++) {
if (arrAll[i].type == "radio") {
arrAll[i].checked = false;
}
}
rbtn.checked = true;
//document.getElementById("ctl00_ContentPlaceHolder3_HFNumber").value = rbtn.nextSibling.innerHTML;
// document.getElementById("ctl00_ContentPlaceHolder3_btnUpdate").click();
document.getElementById("<% =HFNumber.ClientID%>").value = rbtn.nextSibling.innerHTML; document.getElementById("<% =Label1.ClientID%>").innerText = rbtn.nextSibling.innerHTML;
}
<asp:RadioButton ID="rdb1" name="area" runat="server" Text=‘<%# Eval("Goodsid")%>‘
GroupName="rbAdress" onclick="selectSingleRadio(this);" />
<asp:Label ID="Label1" runat="server" Text=" "></asp:Label>用来显示的 前台显示
<asp:HiddenField ID="HFNumber" runat="server"/>用来传值的
string no = HFNumber.Value;后台接受;