Class SimplePage
Base class for EPiServer pages with read-only functionality.
Inherited Members
Namespace: EPiServer
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public class SimplePage : PageBase, IPageSource, ICurrentPage, IContentSource, ISupportsScriptManager
Remarks
Pages that inherit from SimplePage have all the other capabilities that TemplatePage descendents have, meaning that you can still add EPiServer properties and edit their contents. However, when a Web page inheriting from SimplePage is displayed, you will not have access to Admin mode or Edit mode from the shortcut menu.
Examples
The following example demonstrates a Web form that inherits from SimplePage.
public class Default : SimplePage
{
// ...
}
Constructors
SimplePage()
Initializes a new instance of SimplePage
Declaration
public SimplePage()
SimplePage(Int32)
Initializes a new instance of the SimplePage class.
Declaration
public SimplePage(int options)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | options | The page options to enable. |
Remarks
The options parameter is a bitmap constructed from the OptionFlag of Page plugin classes from the EPiServer.Web.PageExtensions namespace.
SimplePage(Int32, Int32)
Initializes a new instance of the SimplePage class.
Declaration
public SimplePage(int enable, int disable)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | enable | The enable. |
System.Int32 | disable | The disable. |