Dropdown gets cleared

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

    Set the AppendDataBoundItems property of the dropdown to true and this will allow you to have a mix of databound items and non databound items (otherwise that insert statement is clearing your list)

    http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listcontrol.appenddatabounditems.aspx

提交回复
热议问题