Dynamic drop down list's selected Index Changed event always return the first value
<p>So,</p>

<p>I have a drop down list whish fill by a result of SQL query in my event page_Load. What i want to do it's get the current value when the event selectedIndexChanges on my drop down list is fired and put it in a textbox.</p>

<p>Look my code below.</p>

<ul>
<li><p>My drop down list definition: <code>&lt;asp:DropDownList ID="ddProfil" runat="server" Width="550" AutoPostBack="True" OnSelectedIndexChanged="ddProfil_SelectedIndexChanged" &gt;</code></p></li>
<li><p>My page load event: <code>protected void Page_Load(object sender, EventArgs e)
{
    loadDDProfil(Request.QueryString["sitename"]);
}</code></p></li>
<li><p>Function which load the drop down list: </p></li>
</ul>

<pre> <code> protected void loadDDProfil(string siteName)
        {

            SqlCommand requete = new SqlCommand();
            requete.Connection = connWeb.ConnectionToDb;

            requete.CommandType = System.Data.CommandType.Text;
            string strReq = "ps_get_all_IndexProfil " + "MRF";
            requete.CommandText = strReq;
            DataTable dtPrf = connWeb.ExecuteQueryDB(requete);

            SqlDataAdapter adapter = new SqlDataAdapter(requete);
            adapter.Fill(dtPrf);

            var dtSource = from p in dtPrf.AsEnumerable()
                           select new {
                               ind = p.Field("IndexProfil"),
                               DisplayedField = String.Format("{0} [ {1} ]", p.Field("NomProfil"), p.Field("Description"))
                           };

            ddProfil.DataSource = dtSource;
            ddProfil.DataValueField = "ind";
            ddProfil.DataTextField = "DisplayedField";
            ddProfil.DataBind();
            ddProfil.SelectedIndexChanged += ddProfil_SelectedIndexChanged;</code></pre>

<ul>
<li>And the event Selected Index Changed:</li>
</ul>

<pre><code>
  public void ddProfil_SelectedIndexChanged(object sender, EventArgs e)
        {

               string s = ddProfil.SelectedValue;
        }
</code></pre>

<p>Thank you, for your help.</p>