Dropdown gets cleared

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

    Not positive, but I've seen in other languages and false interpretation...

    You have your product Value as convert of ToDecimal which implies 99.999 for example.

    If your ID that you are binding to is based on a whole number (ie: Integer basis), the bound value won't match... even if Value = 1 vs Value = 1.00 it won't match and will not be considered a valid "value" that matches your list. Convert your answer to a whole/integer number and it might do what you expect.

提交回复
热议问题