title: Trying to bind data from DropDownList in ListView
body: <p>I am trying to bind data from DropDownList in ListView in EditItemTemplate but it didn't work.</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;asp:DropDownList ID="DropDownList1" runat="server" SelectedValue='&lt;%# Bind("type")%&gt;'&gt;
      &lt;asp:ListItem Text="Fatwa" Value="1"&gt;&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Text="Interviewer" Value="2"&gt;&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Text="Programs" Value="3"&gt;&lt;/asp:ListItem&gt;
  &lt;/asp:DropDownList&gt;
  </code></pre>