Can the value and text properties of a dropdown list be used independently?

前端 未结 2 1758
遥遥无期
遥遥无期 2021-01-21 21:46

Can these two properties of a dropdown list in ASP.NET be used independently?

I wanted to retrieve a null value when the user selects some text; I couldn\'t

2条回答
  •  情深已故
    2021-01-21 22:11

    Just set the value to some sentinel value like an empty string or some crazy string "JANDKJASD_" and handle it accordingly.

提交回复
热议问题