Dropdown gets cleared

后端 未结 5 1060
南笙
南笙 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:32

    Do you have viewstate disabled on the page? Since you are only loading the items into the dropdownlist on the first load of the page, if viewstate is not enabled there will be nothing in the list after the postback.

提交回复
热议问题