Пример #1
0
        private void BindCityFrom()
        {
            PurchaseBillDAL obj    = new PurchaseBillDAL();
            var             ToCity = obj.BindFromCity();

            obj = null;
            drpCityFrom.DataSource     = ToCity;
            drpCityFrom.DataTextField  = "City_Name";
            drpCityFrom.DataValueField = "City_Idno";
            drpCityFrom.DataBind();
            drpCityFrom.Items.Insert(0, new ListItem("--Select--", "0"));
        }