Nov 11, 2010, 5:36 PM
radio button always returns false
This may sounds stupid but if I check if the radio button is checked it always returns false. How do I check which radio button in a group has been selected?
Front-end Code:
Front-end Code:
<ext:Radio runat="server" ID="Always2" GroupName="CLOccurance2" FieldLabel="Always" InputValue="Always" AnchorHorizontal="85%" Width="60" />
<ext:Radio runat="server" ID="Sometimes2" GroupName="CLOccurance2" FieldLabel="Sometimes" InputValue="Sometimes" AnchorHorizontal="85%" Width="60" />
Codebehind:/** Both of the following returns false **/
String radioChecked1 = Always2.Checked.ToString();
String radioChecked2 = Sometimes2.Checked.ToString();
Thank you.:confused: