Click or drag to resize
ControlsExtensions Class
Extension methods.
Inheritance Hierarchy
SystemObject
  CMS.Base.Web.UIControlsExtensions

Namespace: CMS.Base.Web.UI
Assembly: CMS.Base.Web.UI (in CMS.Base.Web.UI.dll) Version: 11.0.0
Syntax
C#
public static class ControlsExtensions

The ControlsExtensions type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberRenderShortIDs
If true, the short IDs of the controls are rendered where possible.
Top
Methods
  NameDescription
Public methodStatic memberAddCssClass
Adds CSS class to control. If class is already present, than adding is skipped. Class names are case sensitive.
Public methodStatic memberCallHandled
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.
Public methodStatic memberGetCssClasses
Returns all CSS classes of control.
Public methodStatic memberGetRenderedHTML
Returns HTML which would be rendered by control to page.
Public methodStatic memberGetString
Gets the string by the specified resource key
Public methodStatic memberHasCssClass
Checks whether the control has given CSS class. Class names are case sensitive.
Public methodStatic memberLoadUserControl
Loads the user control based on the given path
Public methodStatic memberRemoveCssClass
Removes all occurrences. Class names are case sensitive.
Public methodStatic memberReportException
Reports the exception within the control hierarchy by placing an exception report next to the given control.
Public methodStatic memberSetCssClasses
Sets CSS classes to the control. Current classes will be overridden.
Public methodStatic memberSetHeaders
Sets the grid headers to the given resource strings
Public methodStatic memberSetShortID
Sets the short ID to the ID if available.
Top
See Also