Example #1
0
 protected void ddlCities_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlCities.SelectedItem.Text.CompareTo("בחר עיר") == 1)
     {
         ddlHood.Items.Clear();
         ddlHood.Items.Add("בחר שכונה");
         AddressBL             abl = new AddressBL();
         LinkedList <ListItem> l   = abl.getAllHood(ddlCities.SelectedItem.Value);
         foreach (ListItem li in l)
         {
             ddlHood.Items.Add(li);
         }
     }
     else
     {
         ddlHood.Items.Clear();
     }
 }