0
Hello, I would like to ask for help on the unique selection of a Radiobutton, I inserted two on my page and I wish only 1 could be selected if the other was automatically unchecked the other...
<div class="col-xs-3 col-lg-2 radiobutton">
<asp:RadioButton ID="RadioBtnPar" runat="server" Text="Par" OnCheckedChanged="RadioBtnPar_CheckedChanged"/>
<asp:RadioButton ID="RadioBtnImpar" runat="server" Text="Ímpar" OnCheckedChanged="RadioBtnImpar_CheckedChanged"/>
</div>
protected void RadioBtnPar_CheckedChanged(object sender, EventArgs e)
{
RadioBtnImpar.AutoPostBack = true;
RadioBtnImpar.Checked = false;
}
protected void RadioBtnImpar_CheckedChanged(object sender, EventArgs e)
{
RadioBtnPar.Checked = false;
}
Here are the checkedchanged event commands, thanks in advance
Thank you very much, I had used name="", but I didn’t know it was only HTML, now it’s working, even Rigadão!!!
– Dreidel