ASP.NET DropDown returning value of SelectedText instead of SelectedValue
<p>What am I missing?
I am constructing dropdowns, like this, from code-behind:</p>

<pre><code> ListItemCollection oL = new ListItemCollection();
        foreach (var item in edata)
        {
            ListItem oListItem = new ListItem();
            oListItem.Text = item.StatusName; //"StatusName"
            oListItem.Value  = item.Id.ToString(); // "StatusId"

            if(item.Id == statusid)
            {
                oListItem.Selected = true;
            }
            oL.Add(oListItem);

        }
</code></pre>

<p>But when I try to pick SelectedItem.Value like this, it should return StatusId but it is returning StatusName. What am I missing? </p>

<pre><code>EventStatusDropDownList1.SelectedItem.Value
</code></pre>
