protected void DDLCC_SelectedIndexChanged(object sender, EventArgs e) { if (DDLCC.SelectedValue != "0") { DDLCSC.DataSource = CustCategory.GetCustomerCategoryMaster(Convert.ToString(DDLCC.SelectedValue)); DDLCSC.DataBind(); DDLCSC.Items.Insert(0, new ListItem("Select Sub Category", "0")); if (DDLCSC.Items.Count > 0) { DDLCSC.Focus(); } else { DDLCSC.Focus(); } } else { DDLCSC.DataBind(); DDLCSC.Focus(); } if (DDLCC.SelectedValue == "8") { btnAddAccess.Enabled = true; txtBookType.Enabled = true; txtFromQty.Enabled = true; txtToQty.Enabled = true; txtDiscount.Enabled = true; } else { btnAddAccess.Enabled = false; txtBookType.Enabled = false; txtFromQty.Enabled = false; txtToQty.Enabled = false; txtDiscount.Enabled = false; } }
protected void DDLCC_SelectedIndexChanged(object sender, EventArgs e) { if (DDLCC.SelectedValue != "0") { DDLCSC.DataSource = CustCategory.GetCustomerCategoryMaster(Convert.ToString(DDLCC.SelectedValue)); DDLCSC.DataBind(); DDLCSC.Items.Insert(0, new ListItem("Select Sub Category", "0")); if (DDLCSC.Items.Count > 0) { DDLCSC.Focus(); } else { DDLCSC.Focus(); } } else { DDLCSC.DataBind(); DDLCSC.Focus(); } }