Please post the code that you used to populate your DropDownList.
Cannot Convert string to class type
Collapse
X
-
I can't access my code right now, but I have a button's method that have this:
TEL_T_NUMBER obj = new TEL_T_NUMBER();
obj.Number_ID = Convert. ToInt32(textbox 1.text);
obj.number_type .myValue = dropdownlist1.s electedItem.val ue;
gridview.databi nd();Comment
-
mmm I can't do it now but if I did it and the dropdownlist value was null, how can I make it carry a value?Comment
-
Comment