protected void Page_Load(object sender, EventArgs e) { MasterPage.IsSecure = true; if (Session["Curr_Patron"] == null) { Response.Redirect("Default.aspx"); } if (!IsPostBack) { PatronsRibbon.GetByAppContext(this); var patron = (Patron)Session["Curr_Patron"]; MasterPage.PageTitle = string.Format("{0} - {1} {2} ({3})", "Patron Review", patron.FirstName, patron.LastName, patron.Username); } if (!IsPostBack) { lblPK.Text = Request["PK"]; if (lblPK.Text.Length == 0) { Response.Redirect("PatronReviews.aspx"); } else { dv.ChangeMode(DetailsViewMode.Edit); } Page.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.IsSecure = true; if (Session["Curr_Patron"] == null) { Response.Redirect("Default.aspx"); } if (!IsPostBack) { PatronsRibbon.GetByAppContext(this); var patron = (Patron)Session["Curr_Patron"]; MasterPage.PageTitle = string.Format("{0} - {1} {2} ({3})", "Patron Notifications", patron.FirstName, patron.LastName, patron.Username); } _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) { MasterPage.IsSecure = true; if (Session["Curr_Patron"] == null) { Response.Redirect("Default.aspx"); } if (!IsPostBack) { PatronsRibbon.GetByAppContext(this); var patron = (Patron)Session["Curr_Patron"]; MasterPage.PageTitle = string.Format("{0} - {1} {2} ({3})", "Patron Log Entry", patron.FirstName, patron.LastName, patron.Username); } if (!IsPostBack) { if (Request["PK"] == "" || Request["PK"] == null) { PatronLogEntryCtl1.PatronID = Session["CURR_PATRON_ID"].ToString(); PatronLogEntryCtl1.PatronPointsID = ""; PatronLogEntryCtl1.LoadControl(); } else { PatronLogEntryCtl1.PatronID = Session["CURR_PATRON_ID"].ToString(); PatronLogEntryCtl1.PatronPointsID = Request["PK"].ToString(); PatronLogEntryCtl1.LoadControl(); } } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.IsSecure = true; if (Session["CURR_PATRON_MODE"].ToString() == "ADDSUB") { MasterPage.PageTitle = string.Format("{0}", "Add Patron SUB Account"); } if (Session["CURR_PATRON_MODE"].ToString() == "ADDNEW") { MasterPage.PageTitle = string.Format("{0}", "Add Patron Account"); } if (Session["CURR_PATRON_MODE"].ToString() == "EDIT") { MasterPage.PageTitle = string.Format("{0}", "Patron Account Details"); } if (!IsPostBack) { PatronsRibbon.GetByAppContext(this); } if (!IsPostBack) { if (Session["Curr_Patron"] == null) { PatronCtl1.PatronID = ""; PatronCtl1.MasterPatronID = ""; PatronCtl1.LoadControl(); } else { PatronCtl1.PatronID = Session["CURR_PATRON_ID"].ToString(); if (Session["CURR_PATRON_MODE"].ToString() == "EDIT") { var p = Patron.FetchObject(int.Parse(Session["CURR_PATRON_ID"].ToString())); if (p.MasterAcctPID != 0) { PatronCtl1.MasterPatronID = p.MasterAcctPID.ToString(); } else { PatronCtl1.MasterPatronID = ""; } } PatronCtl1.LoadControl(); } } //Session["CURR_PATRON_ID"] = key; //Session["CURR_PATRON"] = Patron.FetchObject(key); }
protected void Page_Load(object sender, EventArgs e) { MasterPage.IsSecure = true; MasterPage.PageTitle = string.Format("{0}", "Patron Search"); _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_"]; } } gv1.PageSize = int.Parse(SRPSettings.GetSettingValue("PageSize")); if (!IsPostBack) { PatronsRibbon.GetByAppContext(this); } if (!IsPostBack) { if (Filter.WasFiltered()) { Filter.LoadDropdowns(); Filter.GetFilterSessionValues(); DoFilter(); } else { gv1.DataSourceID = ""; gv1.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.IsSecure = true; if (Session["Curr_Patron"] == null) { Response.Redirect("Default.aspx"); } if (!IsPostBack) { PatronsRibbon.GetByAppContext(this); } if (!IsPostBack) { var patron = (Patron)Session["Curr_Patron"]; MasterPage.PageTitle = string.Format("{0} - {1} {2} ({3})", "Add Patron Prizes", patron.FirstName, patron.LastName, patron.Username); } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.IsSecure = true; _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_"]; } } gv1.PageSize = int.Parse(SRPSettings.GetSettingValue("PageSize")); if (Session["Curr_Patron"] == null) { Response.Redirect("Default.aspx"); } if (!IsPostBack) { PatronsRibbon.GetByAppContext(this); } if (!IsPostBack) { GetData(); } }
protected void Page_Load(object sender, EventArgs e) { MasterPage.IsSecure = true; if (Session["Curr_Patron"] == null) { Response.Redirect("Default.aspx"); } var patron = (Patron)Session["Curr_Patron"]; MasterPage.PageTitle = string.Format("{0} - {1} {2} ({3})", "Add Patron Badge", patron.FirstName, patron.LastName, patron.Username); if (!IsPostBack) { PatronsRibbon.GetByAppContext(this); } if (!IsPostBack) { lblPK.Text = ""; dv.ChangeMode(DetailsViewMode.Insert); Page.DataBind(); } }