lesliedomjones
Programmer
hello all,
I have two webforms radio buttons in a same group. Through Code I am setting second radio button as checked by default. ie, In ASPX page it looks like as shown below..
<asp:RadioButton id="rdoSOne" runat="server" Text="ServerOne" GroupName="groupname"></asp:RadioButton>
<asp:RadioButton id="rdoSTwo" runat="server" Text="ServerOne" Checked="True" GroupName="groupname"></asp:RadioButton>
now through code (ie, in CS file) I am trying to change the status of the radio button by giving the code as shown below.
rdoSOne.Checked = true;
But it is not working.. But if I explicity give
rdoSOne.Checked = true;
rdoSTwo.Checked = false;
It is working fine.. I know the problem. But I dont know is there any other way by which this problem can be overcome? Or is it a dotnet bug? Experts please help me...
Thanks in advance...
Regards,
leslie
I have two webforms radio buttons in a same group. Through Code I am setting second radio button as checked by default. ie, In ASPX page it looks like as shown below..
<asp:RadioButton id="rdoSOne" runat="server" Text="ServerOne" GroupName="groupname"></asp:RadioButton>
<asp:RadioButton id="rdoSTwo" runat="server" Text="ServerOne" Checked="True" GroupName="groupname"></asp:RadioButton>
now through code (ie, in CS file) I am trying to change the status of the radio button by giving the code as shown below.
rdoSOne.Checked = true;
But it is not working.. But if I explicity give
rdoSOne.Checked = true;
rdoSTwo.Checked = false;
It is working fine.. I know the problem. But I dont know is there any other way by which this problem can be overcome? Or is it a dotnet bug? Experts please help me...
Thanks in advance...
Regards,
leslie