AbstractUserControl Class |
Namespace: CMS.Base.Web.UI
public abstract class AbstractUserControl : UserControl, IEnsureControls, IShortID
The AbstractUserControl type exposes the following members.
Name | Description | |
---|---|---|
AbstractUserControl |
Name | Description | |
---|---|---|
ComponentName |
Component name
| |
CurrentDocument |
Current document
| |
CurrentPageInfo |
Current page info
| |
CurrentSite |
Current site
| |
CurrentUser |
Current user
| |
DocumentManager |
Document manager control
| |
HeaderActions |
Header actions control
| |
IsLiveSite |
Indicates if control is used on live site.
| |
MessagesPlaceHolder |
Placeholder for messages
| |
ResourcePrefix |
Prefix for the resource strings which are used for the localization by the control and its child controls.
| |
ResourcePrefixes |
List of cached resource prefixes for the parent hierarchy
| |
ShortID |
Short ID of the control.
| |
StopProcessing |
Indicates if the control should perform the operations.
| |
UsesLocalMessagesPlaceHolder |
Indicates if control uses local messages placeholder
|
Name | Description | |
---|---|---|
AddConfirmation |
Adds confirmation text to existing message on the page.
| |
AddError |
Adds error text to existing message on the page.
| |
AddHeaderAction |
Adds specified action to the page header actions.
| |
AddInformation |
Adds information text to existing message on the page.
| |
AddMessage |
Adds message text to existing message on the page.
| |
AddWarning |
Adds warning text to existing message on the page.
| |
EnsureControls |
Interface for control that is able to explicitly ensure its child controls
| |
Eval(String) |
Evaluates the given value
| |
Eval(String, Boolean) |
Evaluates the item data (safe version), with html encoding.
| |
EvalReturnType(String) |
Templated Eval, returns the value converted to specific type.
| |
EvalBool |
Evaluates the item data and converts it to the bool.
| |
EvalDateTime |
Evaluates the item data and converts it to the date time.
| |
EvalDecimal |
Evaluates the item data and converts it to the decimal.
| |
EvalDouble |
Evaluates the item data and converts it to the double.
| |
EvalGuid |
Evaluates the item data and converts it to the guid.
| |
EvalHTML |
Evaluates the item data and doesn't encode it. Method should be used for columns with html content.
| |
EvalHtmlAttribute |
Evaluates the item data, encodes it to be used in HTML attribute.
| |
EvalInteger |
Evaluates the item data and converts it to the integer.
| |
EvalJSString |
Evaluates the item data, encodes it to be used in javascript code and encapsulates it with "'".
| |
EvalText(String) |
Evaluates the item data and encodes it. Method should be used for columns with string nonhtml content.
| |
EvalText(String, Boolean) |
Evaluates the item data and encodes it. Method should be used for columns with string nonhtml content.
| |
GetFlagIconUrl |
Returns resolved path to the flag image for the specified culture.
| |
GetImagePath |
Gets UI image relative path.
| |
GetImageUrl |
Gets UI image relative path.
| |
GetString |
Returns the localized string of the control's hierarchically highest parent that has the ResourcePrefix property and its translation defined.
| |
LoadUserControl |
Loads the user control based on the given path
| |
LogAndShowError |
Logs the exception and
| |
OnInit |
Init event handler.
(Overrides UserControlOnInit(EventArgs).) | |
OnLoad |
Load event handler.
(Overrides ControlOnLoad(EventArgs).) | |
OnPreRender |
PreRender event handler.
(Overrides ControlOnPreRender(EventArgs).) | |
Render |
Render event handler.
(Overrides ControlRender(HtmlTextWriter).) | |
ResolveUrl |
Resolves the given URL
| |
ShowChangesSaved |
Shows the general changes saved message.
| |
ShowConfirmation |
Shows the general confirmation message.
| |
ShowError |
Shows the specified error message, optionally with a tooltip text.
| |
ShowInformation |
Shows the given information on the page, optionally with a tooltip text.
| |
ShowMessage(MessageTypeEnum, String, String, String, Boolean) |
Shows the specified message, optionally with a tooltip text.
| |
ShowMessage(MessageTypeEnum, String, String, String, Boolean, Boolean) |
Shows the specified message, optionally with a tooltip text.
| |
ShowWarning |
Shows the specified warning message, optionally with a tooltip text.
|
Name | Description | |
---|---|---|
CallHandled |
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.) | |
GetString |
Gets the string by the specified resource key
(Defined by ControlsExtensions.) | |
SetShortID |
Sets the short ID to the ID if available.
(Defined by ControlsExtensions.) |
Name | Description | |
---|---|---|
OnAfterUserControlInit |
Fires after UserControl Init.
| |
OnAfterUserControlLoad |
Fires after UserControl Load.
| |
OnAfterUserControlPreRender |
Fires after UserControl PreRender.
| |
OnAfterUserControlRender |
Fires after UserControl Render.
| |
OnBeforeUserControlInit |
Fires before UserControl Init.
| |
OnBeforeUserControlLoad |
Fires before UserControl Load.
| |
OnBeforeUserControlPreRender |
Fires before UserControl PreRender.
| |
OnBeforeUserControlRender |
Fires before UserControl Render.
|