private void BindCity(Int64 UserIdno) { BindDropdownDAL obj = new BindDropdownDAL(); var ToCity = obj.BindCityUserWise(UserIdno); DdlfromcityHead.DataSource = ToCity; DdlfromcityHead.DataTextField = "CityName"; DdlfromcityHead.DataValueField = "CityIdno"; DdlfromcityHead.DataBind(); obj = null; DdlfromcityHead.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "0")); }
private void BindCity() { BindDropdownDAL obj = new BindDropdownDAL(); var ToFrom = obj.BindLocFrom(); DdlfromcityHead.DataSource = ToFrom; DdlfromcityHead.DataTextField = "City_Name"; DdlfromcityHead.DataValueField = "City_Idno"; DdlfromcityHead.DataBind(); obj = null; DdlfromcityHead.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "0")); }