Esempio n. 1
0
 protected void ddlCity_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlCity.SelectedIndex != 0)
     {
         objCommonClass.BindTeritory(ddlTerritory, int.Parse(ddlCity.SelectedValue.ToString()));
     }
     else
     {
         ddlTerritory.Items.Clear();
         ddlCity.Items.Insert(0, new ListItem("Select", "Select"));
         ddlTerritory.Items.Insert(0, new ListItem("Select", "Select"));
     }
 }
Esempio n. 2
0
 //Fill the Territory behalf of City
 protected void ddlCity_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlCity.SelectedIndex != 0)
     {
         objCommonClass.BindTeritory(ddlTerritory, int.Parse(ddlCity.SelectedValue.ToString()));
         //   objSCPopupMaster.BindTerritory(ddlTerritory, int.Parse(ddlCity.SelectedValue.ToString()));
     }
     else
     {
         ddlTerritory.Items.Clear();
     }
 }