title: Selected value on a DropDownList inside of a repeater
body: <p>I'm adding a dropdwonlist inside of my repeater. Now I need to set a selected value for my dropdownlist.. but I'm not being very successful..</p>
  
  <pre><code>private void PhysicianSource()
  {
      DataSet ds = new DataSet();
      DataTable dt = ds.Tables.Add("Source");
      dt.Columns.Add("ID", Type.GetType("System.String"));
      dt.Columns.Add("Desc", Type.GetType("System.String"));
  
      Provider oProvider = new Provider();
      List&lt;ProviderLabel&gt; lstprovider = oProvider.RetrievePhysicianList();
      foreach (ProviderLabel item in lstprovider)
      {
          DataRow dr = dt.NewRow();
          dr[0] = item.ProviderCode.ID.ToString();
          dr[1] = item.Name.ToString();
          dt.Rows.Add(dr);
      }
  
      drpPhysicianCode.DataSource = ds;
      drpPhysicianCode.DataMember = "Source";
      drpPhysicianCode.DataTextField = "ID";
      drpPhysicianCode.DataValueField = "ID";
      drpPhysicianCode.DataBind();
  }
  </code></pre>
  
  <p>asp.net</p>
  
  <pre><code>&lt;asp:Repeater ID="rptrPatientList" runat="server" &gt;
      &lt;HeaderTemplate&gt;&lt;/HeaderTemplate&gt;
      &lt;ItemTemplate&gt;
          &lt;tr&gt;
              &lt;td class="style2"&gt;
              &lt;asp:DropDownList  ID="DropDownList1"
                  DataTextField="ID" runat="server"
                  DataValueField="Desc"
                  SelectedValue='&lt;%# Eval("Code") %&gt;'
                  DataSource="ds"&gt;
              &lt;/asp:DropDownList&gt;
              &lt;/td&gt;
  
              &lt;/td&gt;
          &lt;/tr&gt;
  </code></pre>
  
  <p>nothing happens on my codes.. help me guys I'm just a beginner on this.. thank you very much..</p>