public void Bind_DDL_Zone() { DDlZone.Items.Clear(); DDlZone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLSuperZone.SelectedValue.ToString()), "Zone"); DDlZone.DataBind(); DDlZone.Items.Insert(0, new ListItem("-Select Zone-", "0")); }
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 (DDlZone.SelectedIndex == 0) { Bind_DDL_Zone(); DDlZone.Focus(); } else { } }
protected void DDLSuperZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDlZone.SelectedIndex == 0) { // MessageBox("Select SuperZone"); Bind_DDL_Zone(); DDlZone.Focus(); // DDLZone.SelectedValue = null; // Bind_DDL_ZoneCust(); } else { } }