ddlArea.DataSource = datatable; ddlArea.DataTextField = "AREA_NAME"; ddlArea.DataValueField = "AREA_ID"; ddlArea.DataBind();
dropdown1.DataSource = ds;//ds is the dataset containing your source dropdown1.DataTextField = "namecolumn"; dropdown1.DataValueField = "idcolumn"; dropdown1.DataBind();
DropDownList1.DataTextField = "Name"; DropDownList1.DataValueField = "ID"; DropDownList1.DataSource = ;//bind here ur datasource DropDownList1.DataBind(); DropDownList1.Items.Insert(0, new ListItem("Select", "0"));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)