working with dropdown controls
<p>i have dropdown controls in my application namely ddlmonth and ddlday respectively and i added months(january,february ect in ddlmonth) and days added to ddldays(1,2,.....31) when i run my page i display current month and date this is my code </p>

<pre><code> public void getMonth() {
        ddlmonth.SelectedIndex = DateTime.Now.Month -1;
        ddldate.SelectedIndex = DateTime.Now.Day - 1;
    }
</code></pre>

<p>and i place this in page load even. like this</p>

<pre><code>protected void Page_Load(object sender, EventArgs e){
         getMonth();
     }
</code></pre>

<p>it is working fine, but when i keep getMonth() in ispostback it is not displaying current month and day.</p>

<pre><code> protected void Page_Load(object sender, EventArgs e) {
       if(!isPostback) {
         getMonth();
         }
    }
</code></pre>

<p>present i place without ispostback in pageload when i select ddlmonth (dropdown) diffent month and ddlday(dropdwon) diffent day (not current month and day) when i press button 
in database it is inserting current month and day, actually i select diffent month and day
and this is my code.</p>

<pre><code>  protected void btnEvent_Click(object sender, EventArgs e){
                clsevents.Month = ddlmonth.SelectedValue.ToString();
                clsevents.Day = ddldate.SelectedValue.ToString();
    }
</code></pre>

<p>but in database it is inserting current mont and day when i select diffent mont and day in ddlmont(dropdwon) and ddlday
please help me some one.</p>
