Ejemplo n.º 1
0
 protected void ddlHood_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlHood.SelectedItem.Text.CompareTo("בחר שכונה") == 1)
     {
         ddlStreet.Items.Clear();
         ddlStreet.Items.Add("בחר רחוב");
         AddressBL             abl = new AddressBL();
         LinkedList <ListItem> l   = abl.getAllStreet(ddlHood.SelectedItem.Value);
         foreach (ListItem li in l)
         {
             ddlStreet.Items.Add(li);
         }
     }
     else
     {
         ddlStreet.Items.Clear();
     }
 }