how to sort country name by alphabetical order
_lstOEMCountry = db.OEMcountries.ToList();
ddlCountry.DataSource = _lstOEMCountry;
ddlCountry.DataTextField = "name";
// ddlCountry.DataValueField = "CountryId";
ddlCountry.DataValueField = "name";
ddlCountry.AppendDataBoundItems = true;
ddlCountry.DataBind();
Go to the complete details ...