Javascript Code :
<Script language = "JavaScript" type = "text/JavaScript">
Function clickit (){
VaR dom = Document. All;
VaR El = event. srcelement;
If (El. tagname = "input" & El. type. tolowercase () = "radio ")
{
For (I = 0; I <Dom. length; I ++)
{
If (DOM [I]. tagname = "input" & Dom [I]. type. tolowercase () = "radio ")
{
Dom [I]. Checked = false;
}
}
}
El. Checked = true;
}
</SCRIPT>
Code for the single-choice button is as follows:
<Asp: radiobutton id = "radiobutton1" runat = "server" onclick = "clickit ();"
TEXT = '<% # databinder. eval (container. dataitem, "card_nbr") %>'/>
If (El. tagname = "input" & El. type. tolowercase () = "radio ")
Change
If (El. Name = "ctl00 $ contentplaceholder1 $ l_locking ing $ ctl01 $ dl_r ")
Yes.
Ctl00 $ contentplaceholder1 $ l_locking ing $ ctl01 $ dl_r
View the HTML code generated on your page. Find the name of the radio button