Dropdown gets cleared

后端 未结 5 1053
南笙
南笙 2021-01-29 04:16

I have one asp.net application, in which i have one dropdown which is binded to dataset. But after selecting one item, the drop down gets cleared all the value, How we can resol

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-29 04:43

    Without seeing the full source for the page I am simply speculating, but have you disabled ViewState on the page? If so, the DropDownList cannot retain its values between postbacks and the lists will have to be reloaded each time.

提交回复
热议问题