Error 31 Cannot implicitly convert type
‘System.Web.UI.WebControls.DropDownList’ to ‘string’ Error 34 Cannot
implicitly convert type ‘string’ to
‘System.Web.UI.WebControls.DropDownList’
Exactly as I’ve said in the comments. You can’t use dropdownlists like this.
DropDownList has a property for accessing the currently selected value
string selectedItemValue = dropDownListInstance.SelectedValue;
Or maybe:
string selectedItemValue = dropDownListInstance.SelectedItem.Text;
1
solved How to Save profile account in database when I click the save button? [closed]