Example #1
0
 /// <summary>
 /// Handles the Init event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void Page_Init(object sender, EventArgs e)
 {
     ScriptManager.GetCurrent(Page).Scripts.Add(new ScriptReference("~/SmartParts/Campaign/TargetResponses_ClientScript.js"));
     if (ContextService != null)
     {
         _State = ContextService.GetContext("ResponseFilterStateInfo") as ResponseFilterStateInfo;
         if (_State == null)
         {
             _State = new ResponseFilterStateInfo();
             AssignLeadSourceList();
             PopulateResponseMethods();
             AddDistinctStageItemsToList();
         }
         else
         {
             lbxLeadSource.SelectedIndex = _State.leadSourceFilter;
             lbxMethods.SelectedIndex    = _State.methodFilter;
             lbxStage.SelectedIndex      = _State.stageFilter;
             txtName.Text = _State.nameFilter;
         }
     }
 }
 /// <summary>
 /// Handles the Init event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void Page_Init(object sender, EventArgs e)
 {
     if (ContextService != null)
     {
         _State = (ResponseFilterStateInfo)ContextService.GetContext("ResponseFilterStateInfo");
         if (_State == null)
         {
             _State = new ResponseFilterStateInfo();
             AssignLeadSourceList();
             PopulateResponseMethods();
             AddDistinctStageItemsToList();
         }
         else
         {
             lbxLeadSource.SelectedIndex = _State.leadSourceFilter;
             lbxMethods.SelectedIndex = _State.methodFilter;
             lbxStage.SelectedIndex = _State.stageFilter;
             txtName.Text = _State.nameFilter;
         }
     }
 }
 /// <summary>
 /// Handles the Init event of the Page control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
 protected void Page_Init(object sender, EventArgs e)
 {
     ScriptManager.GetCurrent(Page).Scripts.Add(new ScriptReference("~/SmartParts/Campaign/TargetResponses_ClientScript.js"));
     if (ContextService != null)
     {
         _State = ContextService.GetContext("ResponseFilterStateInfo") as ResponseFilterStateInfo;
         if (_State == null)
         {
             _State = new ResponseFilterStateInfo();
             AssignLeadSourceList();
             PopulateResponseMethods();
             AddDistinctStageItemsToList();
         }
         else
         {
             lbxLeadSource.SelectedIndex = _State.leadSourceFilter;
             lbxMethods.SelectedIndex = _State.methodFilter;
             lbxStage.SelectedIndex = _State.stageFilter;
             txtName.Text = _State.nameFilter;
         }
     }
 }