protected void FilterCat1_SelectedIndexChanged(object sender, EventArgs e) { DataTable dt = new DataTable(); dt = dao.GetCat1(Source.SelectedItem.Text); FilterCat1.DataSource = dt; FilterCat1.DataTextField = "CAT_1"; FilterCat1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { Name.InnerText = Request.QueryString["Name"]; Datetime.InnerText = Request.QueryString["Date"]; getCheckboxOrg(); if (CAType.Value == "IA") { Individual.Attributes.CssStyle.Add("display", "block"); Organisation.Attributes.CssStyle.Add("display", "none"); CACheckbox.Attributes.CssStyle.Add("display", "none"); } else { Individual.Attributes.CssStyle.Add("display", "none"); Organisation.Attributes.CssStyle.Add("display", "block"); CACheckbox.Attributes.CssStyle.Add("display", "block"); } if (Request.QueryString["Paid"].ToString() == "true") { payment.Attributes.CssStyle.Add("display", "block"); } else { payment.Attributes.CssStyle.Add("display", "none"); } if (!IsPostBack) { Session["ID"] = glist; Session["IDORG"] = gListOrg; bindIndiData(); bindOrgdata(); DataTable dt = new DataTable(); dt = dao.GetSource(); Source.DataSource = dt; Source.DataTextField = "SOURCE"; Source.DataBind(); DataTable cat1defualt = new DataTable(); cat1defualt = dao.GetCat1Defualt(); FilterCat1.DataSource = cat1defualt; FilterCat1.DataTextField = "CAT_1"; FilterCat1.DataBind(); DataTable designation = new DataTable(); designation = dao.GetDesignation(); FilterDesignation.DataSource = designation; FilterDesignation.DataTextField = "DESIGNATION_1"; FilterDesignation.DataBind(); DataTable cat2 = new DataTable(); cat2 = dao.GetCat2(); FilterCat2.DataSource = cat2; FilterCat2.DataTextField = "CODE_DESC"; FilterCat2.DataBind(); DataTable past = new DataTable(); past = dao.GetPastEvent(); FilterPastevent.DataSource = past; FilterPastevent.DataTextField = "NAME"; FilterPastevent.DataValueField = "EVENT_ID"; FilterPastevent.DataBind(); } }