You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > HtmlEditor Class > HtmlEditor Properties > ContentID
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
HtmlEditor.ContentID Property

Specifies the content ID to load. This value must match a value that exists in the CMS database. The selection of content is similar to that in the ContentBlock control. The content can only be accessed if the user is logged in. This value can be set only on editor load, before the editor and contents are rendered. After editor load, this value is ignored. 

If this value is 0, then the code behind must handle making the calls that check out content and setting the content at edit time by placing it into the .Text property for the editor. 

A hidden field, named EktContentID_[ControlName], is created to hold this value. It is posted up with the rest of the content.

C#
[Bindable(true)]
[Browsable(true)]
[DesignOnly(false)]
[Category("Ektron")]
[NotifyParentProperty(true)]
[ParenthesizePropertyName(true)]
[Editor(typeof(ContentBlockUITypeEditor), typeof(System.Drawing.Design.UITypeEditor))]
[DefaultValue(0)]
[Description("The CMS ID of the content to load.")]
public long ContentID;
Visual Basic
<Bindable(true)>
<Browsable(true)>
<DesignOnly(false)>
<Category("Ektron")>
<NotifyParentProperty(true)>
<ParenthesizePropertyName(true)>
<Editor(typeof(ContentBlockUITypeEditor), typeof(System.Drawing.Design.UITypeEditor))>
<DefaultValue(0)>
<Description("The CMS ID of the content to load.")>
Public Property ContentID() As long
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!