Class PropertyPageReferenceControl

Property control that is used to store a reference to a page in the web site.

Inheritance
System.Object
PropertyPageReferenceControl
Implements
System.Web.UI.INamingContainer
Inherited Members
Namespace: EPiServer.Web.PropertyControls
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class PropertyPageReferenceControl : PropertyContentReferenceControl, IPropertyControl, INamingContainer, IRenderSettings

Constructors

PropertyPageReferenceControl()

Declaration
public PropertyPageReferenceControl()

Properties

EditControl

Gets or sets the control used to edit the property.

Declaration
protected InputPageReference EditControl { get; set; }
Property Value
Type Description
InputPageReference

The control used to edit the property.

Gets or sets the actual PageReference.

Declaration
public virtual PageReference PageLink { get; set; }
Property Value
Type Description
PageReference

The PageReference.

PropertyPageReference

Gets or sets the PropertyPageReference.

Declaration
public PropertyPageReference PropertyPageReference { get; set; }
Property Value
Type Description
PropertyPageReference

The PropertyPageReference.

Methods

AddErrorValidator(String)

Adds an error validator to the control collection and to the Page.Validators collection.

Declaration
public override void AddErrorValidator(string errorMessage)
Parameters
Type Name Description
System.String errorMessage

The error message.

Overrides
Remarks

This method is used to indicate that invalid data has been entered by the user.

ApplyEditChanges()

Applies changes for the posted data to the page's properties when the RenderType property is set to Edit.

Declaration
public override void ApplyEditChanges()
Overrides
Remarks

This method is called from ApplyChanges() if the control does not have an adapter.

CreateEditControls()

Creates an edit interface for the property.

Declaration
public override void CreateEditControls()
Overrides

TryGetPage()

Declaration
protected virtual IContent TryGetPage()
Returns
Type Description
IContent

Implements

System.Web.UI.INamingContainer

Extension Methods