Example #1
0
 public void PopulateCitiesGridView()
 {
     CityService cs = new CityService();
     DataSet ds = cs.GetCitiesAndCenters();
     this.GridView1.DataSource = ds;
     this.GridView1.DataBind();
 }
Example #2
0
 public void PopulateDestinationCitiesDropDown()
 {
     CityService cs = new CityService();
     this.DropDownListDestinationCities.DataSource = cs.GetCitiesAndCenters();
     this.DropDownListDestinationCities.DataTextField = "CityName";
     this.DropDownListDestinationCities.DataValueField = "CityID";
     this.DropDownListDestinationCities.DataBind();
 }
Example #3
0
 public void PopulateCollectingCitiesDropDown()
 {
     CityService cs = new CityService();
     this.DropDownListCollectingCities.DataSource = cs.GetCitiesAndCenters();
     this.DropDownListCollectingCities.DataTextField = "CityName";
     this.DropDownListCollectingCities.DataValueField = "CityID";
     this.DropDownListCollectingCities.DataBind();
     ListItem item = new ListItem("בחר עיר", "0");
     this.DropDownListCollectingCities.Items.Add(item);
     this.DropDownListCollectingCities.SelectedValue = "0";
 }