Custom Pages
Idea shared by Yisroel Pinson - August 30, 2015 at 10:33 AM
I'm trying to create a custom page and have a link in the portal to this page. 
This page will be on the same website and share the same look and feel as the rest of the portal.
When trying to use the PortalContent Master Page for my custom page, I received an error.
System.InvalidCastException: Unable to cast object of type 'ASP.MyCustomPage_aspx' to type 'SmarterTrack.HelperClasses.CustomPage'. 
at SmarterTrack.MRS.MasterPages.PortalContent.OnPreRender(EventArgs e) 
at System.Web.UI.Control.PreRenderRecursiveInternal() 
at System.Web.UI.Control.PreRenderRecursiveInternal() 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Short of creating a MasterPage from scratch (and having to update it each time whenever there is a ST update), is there a recommend way to implement Custom Pages. Any helps or links would be greatly appreciated.

2 Replies

Reply to Thread
Employee Replied
Employee Post
Hello, This is not currently possible with the way our software is engineered. I will change this thread type to be a feature request for others to vote on and to be considered as a feature for a future release/update.
Thank you,
This can be done by changing the "inherits" part of the page to 
     Inherits SmarterTrack.HelperClasses.CustomPage
instead of the standard
    Inherits System.Web.UI.Page

Reply to Thread