Hi Guys,
I have a problem with the radiobuttonlist.
If I am going to edit the content of the radiobuttonlist manually I can easily set the default selected value.
But how can I do this if the radiobuttonlist is bound in the database. This code below returns empty string.Code:<asp:RadioButtonList ID="rblItems" runat="server" RepeatDirection="Horizontal" AutoPostBack="True"> <asp:ListItem Selected="True">Item 1</asp:ListItem> <asp:ListItem>Item 2</asp:ListItem> <asp:ListItem>Item 3</asp:ListItem> </asp:RadioButtonList>
ThanksCode:rblItems.SelectedIndex = 1;


Reply With Quote
