SelectedValue which is invalid because it does not exist in the list of items

前端 未结 9 1861
孤独总比滥情好
孤独总比滥情好 2021-02-03 21:16

I encounter this problem repeatedly, and haven\'t a clue what is causing it. I get an exception in the DataBind: SelectedValue which is invalid because it does not exist i

9条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-03 21:26

    Not sure it is your case, but I had the same problem and apparently there was no explanation, then I realized doing a copy and paste on notepad of a field of database that at the beginning of the value there was a NULL.

    Curious thing was that a select joining tables was working. I deleted the row and reinserted, after was working fine.

提交回复
热议问题