protected void Page_Load(object sender, EventArgs e) { if (IsPostBack && this.Request.Params.Get("__EVENTTARGET").Contains("logOutButton")) return; if (this.Session["UserInfo"] == null) { Response.Redirect(DEFALT_PAGE); return; } if (this.Session["CampaignEditorClass"] == null) { Response.Redirect(LOGOUT_PAGE); return; } ((GanoInternal)this.Master).PageTitle = PAGE_TITLE; ((GanoInternal)this.Master).PageDescription = PAGE_DESCRIPTION; ((GanoInternal)this.Master).BackLinkVisible = false; ClientScript.RegisterClientScriptInclude("TableSortJS", "TableSort.js"); cEditorAPI = (Ux2CampaingEditorAPI)this.Session["CampaignEditorClass"]; BuildCampaignsTable(); LoadCampaigns(); }
protected void Page_Load(object sender, EventArgs e) { if (IsPostBack && this.Request.Params.Get("__EVENTTARGET").Contains("logOutButton")) return; if (this.Session["UserInfo"] == null) { Response.Redirect(DEFALT_PAGE); return; } if (this.Session["CampaignEditorClass"] == null) { Response.Redirect(LOGOUT_PAGE); return; } ((GanoInternal)this.Master).PageTitle = PAGE_TITLE; ((GanoInternal)this.Master).PageDescription = PAGE_DESCRIPTION; ((GanoInternal)this.Master).BackLinkText = "<< Back to Campaigns"; ((GanoInternal)this.Master).BackLinkURL = LAST_PAGE; ((GanoInternal)this.Master).BackLinkVisible = true; ClientScript.RegisterClientScriptInclude("TableSortJS", "TableSort.js"); cEditorAPI = (Ux2CampaingEditorAPI)this.Session["CampaignEditorClass"]; if (this.Session["CampaignId"] == null) this.Session["CampaignId"] = 0; this.cCampaignId = Convert.ToInt32(this.Session["CampaignId"]); BuildEmailsTable(); if (IsPostBack && (this.Request.Params.Get("__EVENTTARGET").Contains("saveButton") || this.Request.Params.Get("__EVENTTARGET").Contains("applyButton"))) return; if (this.cCampaignId == 0) { this.applyButton.Visible = false; this.campaignIdLabel.Text = "New"; } else { //Existing Campaign this.applyButton.Visible = true; LoadCampaignData(this.cCampaignId); } }