Creating custom page

I have created custom pages in iMIS but without being able to incorporate the master pages inherent in the template (1600).  I have tested by creating aspx pages using all the master pages available (a search on the Net folder shows only master pages in templates/masterpages.

I would like to create custom pages that incorporate the template masters.  How do I do this -- it seems like it should be simple.

Below are the results obtained from trying each available master.

Paul

Master Page Tests

When creating a new aspx with a master page incorporated, this error gets thrown, until all placeholders are removed: 

Object reference not set to an instance of an object. 
Line 31:     override protected SiteMapNode GetStartingNode()
Line 32:     {
Line 33:         return Secondary.GetStartingNode();
Line 34:     }
Line 35:     /// <summary>
 
In each case, after removing the placeholders from the aspx, I change AutoEventWireup from true to false and in the code-behind, System.Web.UI.Page to Asi.ContentManagerNet.DisplayPageBase -- these tips were found in past posts in this community.

Results:

1.  Using Admin.master, I get the header from the staff view:  iMIS15 logo underscored with a fat gold line;  search box, logon and advanced search links(all controls are right-justified)
2.  Instance_Name.master gives the logon link and half a button, both left-justified.
3.  BSADialog.master gives a page with a bunch of image placeholders all bearing red Xs.
4.  Empty.master brings up a blank page
5.  iMIS15Dialog.master brings up a blank page
6.  iMISDialog.master brings up a page with a Cancel button
7.  iMISRightNav.master generates an error when browsing, even with the placeholder removed:

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 15:             hierarchyKey = Asi.AppContext.CurrentContext.HKey;
Line 16:
Line 17:         SideNav.SelectedHierarchyKey = hierarchyKey;
Line 18:         SideNav.SessionID = Request["iSession"];
Line 19: 
Source File: c:\Program Files (x86)\ASI\ASFA_Test\Net\Templates\MasterPages\iMISRightNav.master    Line: 17

8.  Portolio.master throws an error as well:

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 81:         {
Line 82:             TaskDescription.Text = string.Empty;
Line 83:             portfolioPage.Enabled = false;
Line 84:         }
Line 85:     }
Source File: c:\Program Files (x86)\ASI\ASFA_Test\Net\Templates\MasterPages\Portfolio.master    Line: 83

9.  public.master:  this has more graphic elements than admin.master as well as Home, Create Account, Contact Us Logon and Cart navigation links.  These links are functional,
10.   StandardiMIS.master.  This one thows this error:

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
 

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi Paul, In order to make a

Hi Paul,

In order to make a page inherit the master page of whatever template it is being used from, we usually make our aspx pages inherit from Asi.Web.UI.DisplayPageBase in the code behind.  See if this gets you what you need.

Courtney Robertson

Buried in there...

Hi Courtney:

Thanks for your reply.  Buried in the verbosity of my original post is a comment that this has already been done for all the examples shown above.

Sorry to have hidden that so well.  Please let me know if you have any other advice on this.

Paul

 

Paul Kool Data Manager Malachite Management, Inc 201 375 W 5th Ave Vancouver, B.C. Canada V5Y 1J6 paul@malachite-mgmt.com

Asi.Web.UI.DisplayPageBase vs Asi.ContentManagerNet.DisplayPageB

Hi Paul,

You tried inheriting from Asi.Web.UI.DisplayPageBase?  I see that you tried inheriting from Asi.ContentManagerNet.DisplayPageBase.  These are two different things.  I believe eCM when running in .NET mode uses Asi.ContentManagerNet.DisplayPageBase, but WCM pages ususually use Asi.Web.UI.DisplayPageBase.  I can dig around a little bit more if you can confirm, but I can't recall ever seeing the quirkyness that you're seeing.

Courtney Robertson

Still not working

Thanks Courtney.  Sorry I missed the 'nuance' there -- that did it.

Paul

 

Paul Kool Data Manager Malachite Management, Inc 201 375 W 5th Ave Vancouver, B.C. Canada V5Y 1J6 paul@malachite-mgmt.com