protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { SetPageRibbon(StandardModuleRibbons.ProgramRibbon()); } MasterPage.RequiredPermission = 2200; MasterPage.IsSecure = true; MasterPage.PageTitle = string.Format("{0}", "Programs List"); _mStrSortExp = String.Empty; if (!IsPostBack) { _mStrSortExp = String.Empty; } else { if (null != ViewState["_SortExp_"]) { _mStrSortExp = ViewState["_SortExp_"] as String; } if (null != ViewState["_Direction_"]) { _mSortDirection = (SortDirection)ViewState["_Direction_"]; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { MasterPage.IsSecure = true; MasterPage.PageTitle = string.Format("{0}", "Programs Home"); SetPageRibbon(StandardModuleRibbons.ProgramRibbon()); } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.RequiredPermission = 2200; MasterPage.IsSecure = true; MasterPage.PageTitle = string.Format("{0}", "Programs List"); if (!IsPostBack) { SetPageRibbon(StandardModuleRibbons.ProgramRibbon()); } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.RequiredPermission = 2200; MasterPage.IsSecure = true; MasterPage.PageTitle = string.Format("{0}", "Program Add / Edit"); if (!IsPostBack) { SetPageRibbon(StandardModuleRibbons.ProgramRibbon()); lblPK.Text = Session["PGM"] == null ? "" : Session["PGM"].ToString(); dv.ChangeMode(lblPK.Text.Length == 0 ? DetailsViewMode.Insert : DetailsViewMode.Edit); Page.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.RequiredPermission = 2200; MasterPage.IsSecure = true; MasterPage.PageTitle = string.Format("{0}", "Program Text Resources Management"); if (!IsPostBack) { SetPageRibbon(StandardModuleRibbons.ProgramRibbon()); if (WasFiltered()) { GetFilterSessionValues(); LoadScreen(); } } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.RequiredPermission = 2000; MasterPage.IsSecure = true; MasterPage.PageTitle = string.Format("{0}", "Delete Program"); if (!IsPostBack) { SetPageRibbon(StandardModuleRibbons.ProgramRibbon()); lblPK.Text = Session["PGM"] == null ? "" : Session["PGM"].ToString(); var p = DAL.Programs.FetchObject(int.Parse(lblPK.Text)); lblProg.Text = string.Format( "You have are deleting a program: '{0}'. Please select the options below to continue.", p.AdminName); } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.RequiredPermission = 2200; MasterPage.IsSecure = true; MasterPage.PageTitle = string.Format("{0}", "Program Add / Edit"); if (!IsPostBack) { SetPageRibbon(StandardModuleRibbons.ProgramRibbon()); lblPK.Text = Session["PGM"] == null ? "" : Session["PGM"].ToString(); dv.ChangeMode(lblPK.Text.Length == 0 ? DetailsViewMode.Insert : DetailsViewMode.Edit); Page.DataBind(); string codeName = StringResources.getStringOrNull("myaccount-program-reward-code"); if (!string.IsNullOrEmpty(codeName)) { if (!codeName.EndsWith("s")) { codeName += "s"; } var tabContainer = dv.FindControl("tc1"); // only visible on edit screen if (tabContainer != null) { var codePanel = tabContainer.FindControl("tp6") as AjaxControlToolkit.TabPanel; if (codePanel != null) { codePanel.HeaderText = codeName; var generateBtn = codePanel.FindControl("GenerateButtonText") as Label; if (generateBtn != null) { generateBtn.Text = string.Format("Generate {0}", codeName); } } } } } }