C#: DataBase Null in RadioButtonList

Posted by Vinzcent on Stack Overflow See other posts from Stack Overflow or by Vinzcent
Published on 2010-05-07T14:04:20Z Indexed on 2010/05/07 14:08 UTC
Read the original article Hit count: 213

Filed under:
|

Hey,

I would like to have a radiobuttollist were you can select value null.

Something like this:

<asp:RadioButtonList ID="rblCD" runat="server" SelectedValue='<%# Bind("tblCD") %>'>
           <asp:ListItem Value="RW">RW</asp:ListItem>
           <asp:ListItem Value="R">R</asp:ListItem>
           <asp:ListItem Value="DBNull">None</asp:ListItem>
 </asp:RadioButtonList>

Thanks a lot, Vincent

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET