How to Save profile account in database when I click the save button? [closed]

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;

Leave a Comment