title: how can i set radiobutton list in asp.net using eval function?
body: <p>I use this code for radio button using eval function...
  i want to use eval function for radiobutton in asp.net
  i dnt get ans from this code
  thank you
    
                      </p>
  
  <pre><code>                    &lt;asp:RadioButtonList ID="RadioButtonList2" SelectedValue='&lt;%# Eval("gender") %&gt;' runat="server"&gt;
                          &lt;asp:ListItem Value="MALE" Text="MALE"&gt;&lt;/asp:ListItem&gt;
                          &lt;asp:ListItem Value="FEMALE" Text="FEMALE"&gt;&lt;/asp:ListItem&gt;
                      &lt;/asp:RadioButtonList&gt;
                  &lt;/EditItemTemplate&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:Label ID="Label7" runat="server" Text='&lt;%# Eval("gender") %&gt;'&gt;&lt;/asp:Label&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
  </code></pre>