G
Guest
Hi,
Currently iam facing a strange problem.. One dropdown in my page is not
keeping itz state after postback. Whichever the item i select irrespective of
that after the post-back the default selected item is the first one. This
happens even if i submitted the page by making the AutoPostback of the
dropdown true or by clicking on the submit button.
Even it’s not going to the DropDownList1_SelectedIndexChanged method.
A checking is already there at page load event to avoid filling the dropdown
at the time of postback.
The items are populating from database. The interesting matter is, this
problem comes only when i fill the dropdown from the database. if iam hard
coding the items then this problem is not there. That time itz maintaining
the state.
Anybody hav any idea what may be the problem
Currently iam facing a strange problem.. One dropdown in my page is not
keeping itz state after postback. Whichever the item i select irrespective of
that after the post-back the default selected item is the first one. This
happens even if i submitted the page by making the AutoPostback of the
dropdown true or by clicking on the submit button.
Even it’s not going to the DropDownList1_SelectedIndexChanged method.
A checking is already there at page load event to avoid filling the dropdown
at the time of postback.
The items are populating from database. The interesting matter is, this
problem comes only when i fill the dropdown from the database. if iam hard
coding the items then this problem is not there. That time itz maintaining
the state.
Anybody hav any idea what may be the problem