/// <summary> /// /// </summary> /// <param name="customerId"></param> /// <param name="eventCode"></param> private void BindSchemeDropDown(int customerId, string eventCode, int eventId) { //DataTable dtSchemes = new DataTable(); try { dsSchemes = alertsBo.GetCustomerUnsubscribedSystematicSchemes(customerId, eventCode, eventId); Session["UnsubscribedSchemes"] = dsSchemes; if (dsSchemes != null) { Session["DataSetSchemes"] = dsSchemes; ddlScheme.DataSource = dsSchemes.Tables[0]; ddlScheme.DataTextField = "PASP_SchemePlanName"; // "SchemeName" - Give this once the Scheme Name Doubt is clarified ddlScheme.DataValueField = "PASP_SchemePlanCode"; //"ValueField" ddlScheme.DataBind(); ddlScheme.Items.Insert(0, "Select a Scheme"); btnSaveTranxAlert.Enabled = true; } else { ddlScheme.Items.Clear(); ddlScheme.Items.Insert(0, "No Schemes!"); btnSaveTranxAlert.Enabled = false; } } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "CustomerTransactionalAlertManagement.ascx:BindSchemeDropDown()"); object[] objects = new object[3]; objects[0] = EventID; objects[1] = customerId; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }