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

Class ContentControlBase<TPage, TContentData>

Base class for usercontrols that renders ContentData.

Inheritance
System.Object
ContentControlBase<TPage, TContentData>
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class ContentControlBase<TPage, TContentData> : UserControlBase<TPage>, IRenderSettings, IContentDataControl<TContentData>, IRenderTemplate<TContentData>, IContentDataControl, IRenderTemplate where TPage : PageData where TContentData : IContentData
Type Parameters
Name Description
TPage

The type of the page.

TContentData

The type of the IContentData type.

Remarks

If the partial content control is using output cache and is loaded through the Property control, the CurrentData property is not guaranteed to be initialized until after the Page.Init event.

Constructors

ContentControlBase()

Declaration
public ContentControlBase()

Properties

CurrentData

Gets or sets the content data that the usercontrol is associated with.

Declaration
public TContentData CurrentData { get; set; }
Property Value
Type Description
TContentData

Methods

ResolveContentFromPage()

Declaration
protected virtual TContentData ResolveContentFromPage()
Returns
Type Description
TContentData

Explicit Interface Implementations

IContentDataControl.CurrentData

Gets or sets the current data.

Declaration
IContentData IContentDataControl.CurrentData { get; set; }
Returns
Type Description
IContentData

The current data.

Implements

Extension Methods