Code not reaching SelectedIndexChanged event
<p>I've a user control contined in <code>MyPage.aspx</code>. 
The user control contains few drop-down lists; each with <code>Autopostback = true</code> but when I run the code &amp; change the drop-down item, other events gets fired but not <code>SelectedIndexChanged</code>.</p>

<pre class="lang-xml prettyprint-override"><code>&lt;asp:DropDownList ID="ddPages1" runat="server" EnableViewState="true" AutoPostBack="true"
    onselectedindexchanged="ddPages1_SelectedIndexChanged"&gt;
&lt;/asp:DropDownList&gt;
</code></pre>

<p>Code behind of ascx:</p>

<pre><code>protected void ddPages1_SelectedIndexChanged(object sender, EventArgs e)
{
    ...
}
</code></pre>

<p>ascx also has <code>ReportViewer</code> &amp; I'm populating number of pages in the report into drop-down list.</p>

<pre><code>protected override void Render(HtmlTextWriter writer)
{
    TotalPages = ReportViewer1.LocalReport.GetTotalPages();
    txtPageCount1.Text = Convert.ToString(TotalPages);
    if (TotalPages &gt; 0)
    {
        for (int i = 1; i &lt;= TotalPages; i++)
        {
            ListItem listItem = new ListItem();
            listItem.Value = i.ToString();
            listItem.Text = i.ToString(); 
            ddPages1.Items.Add(listItem);
        }  
    }
    base.Render(writer);
 }
</code></pre>
