Click or drag to resize
CMSContent Class
Placeholder for the layout content targeted to a different placeholder.
Inheritance Hierarchy

Namespace: CMS.PortalControls
Assembly: CMS.PortalControls (in CMS.PortalControls.dll) Version: 8.2.23
Syntax
C#
public class CMSContent : CMSPlaceHolder

The CMSContent type exposes the following members.

Constructors
  NameDescription
Public methodCMSContent
Top
Methods
  NameDescription
Public methodAppend(String)
Appends the given content to the placeholder
(Inherited from CMSPlaceHolder.)
Public methodAppend(Control)
Appends the given control to the placeholder
(Inherited from CMSPlaceHolder.)
Public methodClear
Clears the placeholder content
(Inherited from CMSPlaceHolder.)
Protected methodFinishCurrent
Appends the given content to the placeholder
(Inherited from CMSPlaceHolder.)
Protected methodOnInit
Init event handler.
(Inherited from CMSPlaceHolder.)
Protected methodOnPreRender
PreRender event handler
(Inherited from CMSPlaceHolder.)
Public methodRelocateContent
Relocates the content to the appropriate placeholder.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodCallHandled
Calls the method handled by the exception handler. If the call doesn't succeed, the problem is reported through parent IExceptionHandler control instead of throwing unhandled exception for the entire page. Returns true, if the call succeeded, otherwise returns false.
(Defined by ControlsExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Protected fieldmContentRelocated
True if the content was relocated to the placeholder (to prevent double relocation and clearing the content)
Protected fieldmPagePlaceholder
Parent page placeholder.
Top
Properties
  NameDescription
Public propertyIsLiveSite
Indicates if control is used on live site.
(Inherited from CMSPlaceHolder.)
Public propertyPagePlaceholder
Parent page placeholder.
Public propertyPagePlaceholderID
Target page placeholder ID.
Public propertyShortID
Short ID of the control.
(Inherited from CMSPlaceHolder.)
Public propertyShowWhenTargetNotFound
If true, the content is displayed in case the target placeholder is found.
Top
See Also