dropdown controls in asp.net
<p>In my webpage I have two dropdown controls for namely ddlmonth and ddldays ( for month &amp; days)
I write a  method for current month in ddlmonth and current day in ddldays and i call that method in page load event it working fien but when i select (in ddlmonth ) different month and different day and insert into database the values inserted in database is current month and current day, actually i select different month and day</p>

<p>This is my code</p>

<p>This is the method for current date display in ddlmonth dropdwon control and ddlday</p>

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

<p>I call this in page load  </p>

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

<p>If I call the getMonth method in postback</p>

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

<p>it not displaying the current month and date</p>

<p>without postback it is working</p>

<p>When I select different month and day and insert into database it is taking current month and day </p>

<p>Please help me</p>
