J
Jeff
Hey
asp.net 2.0
When I execute my code I get an exception error saying: "String was not
recognized as a valid Boolean"
<asp:RadioButtonList ID="rblGender" Width="100%"
RepeatDirection="Horizontal" runat="server">
<asp:ListItem Text="Male" Selected="True" Value="1" />
<asp:ListItem Text="Female" Value="0" />
</asp:RadioButtonList>
It is on the second line below where the error is
RadioButtonList rbl = (RadioButtonList)tblEditUser.FindControl("rblGender");
bool gender = bool.Parse(rbl.SelectedValue);
any suggestions?
asp.net 2.0
When I execute my code I get an exception error saying: "String was not
recognized as a valid Boolean"
<asp:RadioButtonList ID="rblGender" Width="100%"
RepeatDirection="Horizontal" runat="server">
<asp:ListItem Text="Male" Selected="True" Value="1" />
<asp:ListItem Text="Female" Value="0" />
</asp:RadioButtonList>
It is on the second line below where the error is
RadioButtonList rbl = (RadioButtonList)tblEditUser.FindControl("rblGender");
bool gender = bool.Parse(rbl.SelectedValue);
any suggestions?