Why would DropDownList.Text is return 0 when it is clearly an empty string?

I have a drop down list that I am binding to a record that clearly sets value=0, text=''

the dropdownlist looks fine, i do not see any text in the control BUT when i try to validate in the code behind it says the dropdownlist.text = 0

i do not know why the control shows no text on the form but holds a value in its .text property, it doesn't make any sense. can anyone help? Thanks.


I fixed the issue I was having by inserting a null value along with the text of '' and now the dropdownlist.text is = '' intead of 0.

Need Your Help

git pull files are now “modified” which is ridiculous


I am working on a git project with other people. One of them updated some files yesterday. Today I did git pull and it updated my files, like it should. Doesn't get more straightforward than that

Orleans Architecture Design - Silo projects combined or separate?


There is an IoT data collection project, and an IoT data processing project. They are separately developed and maintained. However, it would be beneficial to share common grains between them in an