The 'SelectedIndex' and 'SelectedValue' attributes are mutually exclusive.ddlName.SelectedIndex = 0; ddlName.SelectedValue = "";