November Happy Hour will be moved to Thursday December 5th.

Class SimplePage

Base class for EPiServer pages with read-only functionality.

Inheritance
System.Object
SimplePage
Namespace: EPiServer
Assembly: EPiServer.dll
Version: 10.10.4
Syntax
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.

Implements

Extension Methods