Note: This topic applies to Web Forms Mobile Application presentation project types only. Refer to Creating Web Forms Mobile Application Projects.
When using Master Pages, you have a choice to create a new Web Content form; you can perform either of the following options:
Adding a new ePortal Mobile Web Content Form
Editing the Master Page
Note: Unisys recommends editing the Master Page to create a new Web Content form.
Adding an ePortal Mobile Web Content Form
This method has the advantage of ensuring that the code behind file for the new content form extends Unisys.ePortal.Mobile.MobilePage. This provides the functionality for automatic runtime theme selection. Refer to Adding Validation to Your Web Forms Page.
The disadvantage of this method is that the new .aspx file may not reference the correct Master Page or the correct asp:ContentPlaceHolder controls.
Refer to Project Item Templates for Web Forms Mobile Presentation Projects for more information.
Editing the Master Page
This method has the advantage that the .aspx file is guaranteed to link to the correct Master Page and is guaranteed to include references to the correct asp:ContentPlaceHolder controls.
The disadvantage of this method, however, is that the code behind file does not extend Unisys.ePortal.Mobile.MobilePage.
To add a new Web Content form to the Master Page perform the following steps:
Open the Master Page.
Right-click in the Master Page and select Add Content Page.
Right-click in the newly opened .aspx page and select View Code.
In the new .aspx.cs file, change System.Web.UI.Page to Unisys.ePortal.Mobile.MobilePage.