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")); } }
//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(); } }