ASP.NET page with base class with dynamic master page not firing events
<p>I am feeling that I have terribly wrong somewhere. I was working on a small asp.net app. I have some dynamic themes in the \theme folder and have implemented a page base class to load the master page on the fly. The master is having the ContentPlaceHolder like:</p>

<pre><code>&lt;asp:ContentPlaceHolder ID="cphBody" runat="server" /&gt;
</code></pre>

<p>Now I am adding pages that are derived from my base class and added the form elements. I know, Visual Studio has problem showing the page in the design mode. I have a dropdown box and wish to add the event of onselectedindexchange. But it is not working. the page is like this:</p>

<pre><code>&lt;%@ Page Language="C#" AutoEventWireup="true" Inherits="trigon.web.Pages.MIS.JobStatus" Title="Job Status"  AspCompat="true" CodeBehind="JobStatus.aspx.cs" %&gt;
&lt;asp:Content ID="Content1" ContentPlaceHolderID="cphBody" runat="Server"&gt;
  &lt;div id="divError" runat="server" /&gt;
  &lt;asp:DropDownList runat="server" id="jobType" onselectedindexchange="On_jobTypeSelection_Change"&gt;&lt;/asp:DropDownList&gt;
&lt;/asp:Content&gt;
</code></pre>

<p>I have also tried adding the event on the code behind like:</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    jobType.SelectedIndexChanged += new System.EventHandler(this.On_jobTypeSelection_Change);

    if (!IsPostBack)
    {
        JobStatus_DA da = new JobStatus_DA();
        jobType.DataSource = da.getJobTypes();
        jobType.DataBind();
    }
}

protected void On_jobTypeSelection_Change(Object sender, EventArgs e)
{

    //do something here
}
</code></pre>

<p>Can anybody help?</p>

<p>Regards,</p>
