G
Guest
Hi,
Currently iam facing a strange problem.. One dropdown in my page is
keeping itz state after postback. Whichever the item i selected is not the
selected item after postback. it goes back to the first item again. This
happens even if i submitted the page by making the AutoPostback of the
dropdown true or by clicking on the submit button. Even itz 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 intresting matter is, this
problem comes only when i fill the dropdown from the database. if iam
hardcoding 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
keeping itz state after postback. Whichever the item i selected is not the
selected item after postback. it goes back to the first item again. This
happens even if i submitted the page by making the AutoPostback of the
dropdown true or by clicking on the submit button. Even itz 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 intresting matter is, this
problem comes only when i fill the dropdown from the database. if iam
hardcoding the items then this problem is not there. That time itz
maintaining the state.
Anybody hav any idea what may be the problem