예제 #1
0
        private void BindCity(Int64 UserIdno)
        {
            BindDropdownDAL obj     = new BindDropdownDAL();
            var             FrmCity = obj.BindCityUserWise(UserIdno);

            ddlFromCity.DataSource     = FrmCity;
            ddlFromCity.DataTextField  = "CityName";
            ddlFromCity.DataValueField = "cityidno";
            ddlFromCity.DataBind();
            ddlFromCity.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "0"));
        }
        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"));
        }