G
Groove
I've searched numerous threads and posts and can't seem to find a fitting
answer. Hopefully this is simple - it seems very simple.
I'm trying to set a SelectedValue of a RadioButtonList to a value from a db
record upon page load. Yet, when the page loads, the RBL has nothing
selected.
Any ideas? The value from the record is definitely a 0 or a 1.
....in page_load ..
radAccommodated.SelectedValue = drData1("AllAccommodated")
...on page...
<asp:RadioButtonList ID="radAccommodated" runat="server" CellPadding="3"
CellSpacing="0" Width="90%">
<asp:ListItem Value="1">Yes, all requests accommodated.</asp:ListItem>
<asp:ListItem Value="0">No, all are not accommodated. .</asp:ListItem>
</asp:RadioButtonList>
Thanks!
answer. Hopefully this is simple - it seems very simple.
I'm trying to set a SelectedValue of a RadioButtonList to a value from a db
record upon page load. Yet, when the page loads, the RBL has nothing
selected.
Any ideas? The value from the record is definitely a 0 or a 1.
....in page_load ..
radAccommodated.SelectedValue = drData1("AllAccommodated")
...on page...
<asp:RadioButtonList ID="radAccommodated" runat="server" CellPadding="3"
CellSpacing="0" Width="90%">
<asp:ListItem Value="1">Yes, all requests accommodated.</asp:ListItem>
<asp:ListItem Value="0">No, all are not accommodated. .</asp:ListItem>
</asp:RadioButtonList>
Thanks!