Hi,

I have a formview and, inside it, I have an ItemTemplate, an
InsertItemTemplate and an Edit ItemTemplate. In the InsertItemTemplate
and the EditItemTemplate, I have a RadioButtonList with two options
(Yes or No) and this list is bound with the information retrieved from
the Database.
The InsertTemplate is not a problem, because I'm specifying a default
value. But for the Edit ItemTemplate an error message is fired when
the value in the Database is null. My code is like this:

-------------------------
<tr>
      <td align="right">
            <b> Member: </b>
      </td>
      <td align="left">
           <asp:RadioButtonList ID="MemberRadioButtonList"
runat="server" AutoPostBack="False"
                 SelectedValue='<%# Bind("isMember")%>'>
                 <asp:ListItem Text="Yes" Value="1"></asp:ListItem>
                 <asp:ListItem Text="No" Value="0" ></asp:ListItem>
           </asp:RadioButtonList>
      </td>
</tr>
-------------------------

How do I handle with the nulls in this case?

Thanks a lot!

Ana

Reply via email to