public void getDDLdata() { DDLzone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLsuperzone.SelectedValue.ToString()), "Zone"); DDLzone.DataBind(); DDLzone.Items.Insert(0, new ListItem("--Select Zone--", "0")); DDLzone.Enabled = true; DDLzone.Focus(); }
protected void DDLsuperzone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLsuperzone.SelectedIndex == 0) { DDLsuperzone.Focus(); BindSuperZone(); } else { BindZone_SuperZone(); DDLzone.Focus(); } }
protected void DDLsuperzone_SelectedIndexChanged(object sender, EventArgs e) { DDLzone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLsuperzone.SelectedValue.ToString()), "Zone"); DDLzone.DataBind(); DDLzone.Items.Insert(0, new ListItem("All", "0")); DDLzone.Enabled = true; if (DDLsuperzone.SelectedValue == "0") { DDLzone.SelectedValue = "0"; DDLareazone.SelectedValue = "0"; // DDLarea.SelectedValue = "0"; } DDLzone.Focus(); }