Click or drag to resize
AbstractUserControl Class
User control base.
Inheritance Hierarchy

Namespace: CMS.ExtendedControls
Assembly: CMS.ExtendedControls (in CMS.ExtendedControls.dll) Version: 8.2.23
Syntax
C#
public abstract class AbstractUserControl : UserControl, 
	IEnsureControls, IShortID

The AbstractUserControl type exposes the following members.

Constructors
  NameDescription
Protected methodAbstractUserControl
Top
Methods
  NameDescription
Public methodAddConfirmation
Adds confirmation text to existing message on the page.
Public methodAddError
Adds error text to existing message on the page.
Public methodAddHeaderAction
Adds specified action to the page header actions.
Public methodAddInformation
Adds information text to existing message on the page.
Public methodAddMessage
Adds message text to existing message on the page.
Public methodAddWarning
Adds warning text to existing message on the page.
Public methodEnsureControls
Interface for control that is able to explicitly ensure its child controls
Public methodEval(String)
Evaluates the given value
Public methodEval(String, Boolean)
Evaluates the item data (safe version), with html encoding.
Public methodEvalReturnType(String)
Templated Eval, returns the value converted to specific type.
Public methodEvalBool
Evaluates the item data and converts it to the bool.
Public methodEvalDateTime
Evaluates the item data and converts it to the date time.
Public methodEvalDouble
Evaluates the item data and converts it to the integer.
Public methodEvalGuid
Evaluates the item data and converts it to the guid.
Public methodEvalHTML
Evaluates the item data and doesn't encode it. Method should be used for columns with html content.
Public methodEvalHtmlAttribute
Evaluates the item data, encodes it to be used in HTML attribute.
Public methodEvalInteger
Evaluates the item data and converts it to the integer.
Public methodEvalJSString
Evaluates the item data, encodes it to be used in javascript code and encapsulates it with "'".
Public methodEvalText(String)
Evaluates the item data and encodes it. Method should be used for columns with string nonhtml content.
Public methodEvalText(String, Boolean)
Evaluates the item data and encodes it. Method should be used for columns with string nonhtml content.
Public methodGetFlagIconUrl
Returns resolved path to the flag image for the specified culture.
Public methodGetImagePath
Gets UI image relative path.
Public methodGetImageUrl
Gets UI image relative path.
Public methodGetString
Returns localized string.
Public methodLoadUserControl
Loads the user control based on the given path
Public methodLogAndShowError
Logs the exception and
Protected methodOnInit
Init event handler.
(Overrides UserControlOnInit(EventArgs).)
Protected methodOnLoad
Load event handler.
(Overrides ControlOnLoad(EventArgs).)
Protected methodOnPreRender
PreRender event handler.
(Overrides ControlOnPreRender(EventArgs).)
Protected methodRender
Render event handler.
(Overrides ControlRender(HtmlTextWriter).)
Public methodResolveUrl
Resolves the given URL
Public methodShowConfirmation
Shows the general confirmation message.
Public methodShowError
Shows the specified error message, optionally with a tooltip text.
Public methodShowChangesSaved
Shows the general changes saved message.
Public methodShowInformation
Shows the given information on the page, optionally with a tooltip text.
Public methodShowMessage(MessageTypeEnum, String, String, String, Boolean)
Shows the specified message, optionally with a tooltip text.
Protected methodShowMessage(MessageTypeEnum, String, String, String, Boolean, Boolean)
Shows the specified message, optionally with a tooltip text.
Public methodShowWarning
Shows the specified warning message, optionally with a tooltip text.
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 MethodSetShortID
Sets the short ID to the ID if available.
(Defined by ControlsExtensions.)
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
Properties
  NameDescription
Public propertyComponentName
Component name
Public propertyCurrentDocument
Current document
Public propertyCurrentPageInfo
Current page info
Public propertyCurrentSite
Current site
Public propertyCurrentUser
Current user
Public propertyDocumentManager
Document manager control
Public propertyEditedObject
Control's edited object
Public propertyHeaderActions
Header actions control
Public propertyIsLiveSite
Indicates if control is used on live site.
Public propertyMessagesPlaceHolder
Placeholder for messages
Public propertyShortID
Short ID of the control.
Public propertyStopProcessing
Indicates if the control should perform the operations.
Public propertyUIContext
Control's UI Context
Public propertyUsesLocalMessagesPlaceHolder
Indicates if control uses local messages placeholder
Top
Events
  NameDescription
Public eventStatic memberOnAfterUserControlInit
Fires after UserControl Init.
Public eventStatic memberOnAfterUserControlLoad
Fires after UserControl Load.
Public eventStatic memberOnAfterUserControlPreRender
Fires after UserControl PreRender.
Public eventStatic memberOnAfterUserControlRender
Fires after UserControl Render.
Public eventStatic memberOnBeforeUserControlInit
Fires before UserControl Init.
Public eventStatic memberOnBeforeUserControlLoad
Fires before UserControl Load.
Public eventStatic memberOnBeforeUserControlPreRender
Fires before UserControl PreRender.
Public eventStatic memberOnBeforeUserControlRender
Fires before UserControl Render.
Top
See Also
Inheritance Hierarchy
SystemObject
  System.Web.UIControl
    System.Web.UITemplateControl
      System.Web.UIUserControl
        CMS.ExtendedControlsAbstractUserControl
          CMS.ControlsCMSAbstractBaseFilterControl
          CMS.ControlsCMSAbstractTransformation
          CMS.EcommerceProviderCMSPaymentGatewayForm
          CMS.ExtendedControlsAbstractRatingControl
          CMS.ExtendedControlsCMSContextMenuControl
          CMS.ExtendedControlsCMSCustomCalendarControl
          CMS.ExtendedControlsHeaderActions
          CMS.ExtendedControlsInlineUserControl
          CMS.FormControlsCMSAbstractFormLayout
          CMS.FormControlsCMSAbstractManagerEventArgsType, SimpleEventArgsType
          CMS.PortalControlsCMSAbstractLayout
          CMS.PortalControlsCMSAbstractPortalUserControl
          CMS.PortalControlsCMSAbstractWebPart