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.