using System; using System.Web.UI.WebControls; using SiberTek.Xenta.Enums; using SiberTek.Xenta.Presentation; using SiberTek.Xenta.Presentation.Utils; using SiberTek.Xenta.Web.Home.Modules; using SiberTek.Xenta.Web.Utils; namespace SiberTek.Xenta.Web.Home.Pages { public partial class PublicationPrintPage : HomePageBase { #region Properties private int QParamPublication { get { return HttpHelper.GetQueryParam<Int32>("Publication"); } } public override string PageTitle { get { return infPublication.MetaTitle; } } public override string PageDescription { get { return infPublication.MetaDescription; } } public override string PageKeywords { get { return infPublication.MetaKeywords; } } #endregion #region Handlers protected override void OnLoadComplete(EventArgs e) { if(!IsPostBack) { infPublication.PublicationID = QParamPublication; infPublication.BindData(); if(!infPublication.Visible) { Response.Redirect(UrlHelper.GetUrl("home", "not-found.aspx"), true); } } base.OnLoadComplete(e); } #endregion } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The MIT License