Class CommandButton
The CommandButton Class provides an enhanced Button control for DotNetNuke.
Implements
Namespace: DotNetNuke.UI.WebControls
Assembly: DotNetNuke.dll
Syntax
public class CommandButton : WebControl
Properties
| Improve this Doc View SourceButtonSeparator
Gets or sets the Separator between Buttons.
Declaration
public string ButtonSeparator { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
Remarks
Defaults to 1 non-breaking spaces.
CausesValidation
Gets or sets a value indicating whether gets or sets whether the control causes Validation to occur.
Declaration
public bool CausesValidation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A Boolean. |
Remarks
Defaults to True.
CommandArgument
Gets or sets the command argument for this command button.
Declaration
public string CommandArgument { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
CommandName
Gets or sets the command name for this command button.
Declaration
public string CommandName { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
DisplayIcon
Gets or sets a value indicating whether gets or sets whether the icon is displayed.
Declaration
public bool DisplayIcon { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A Boolean. |
Remarks
Defaults to True.
DisplayLink
Gets or sets a value indicating whether gets or sets whether the link is displayed.
Declaration
public bool DisplayLink { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A Boolean. |
Remarks
Defaults to True.
IconKey
Gets or sets the Icon Key to obtain ImageURL.
Declaration
public string IconKey { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
IconSize
Gets or sets the Icon Siz to obtain ImageURL.
Declaration
public string IconSize { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
IconStyle
Gets or sets the Icon Style to obtain ImageURL.
Declaration
public string IconStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
ImageUrl
Gets or sets the Image used for the Icon.
Declaration
public string ImageUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
LocalResourceFile
The CommandButton Class provides an enhanced Button control for DotNetNuke.
Declaration
public string LocalResourceFile { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OnClick
Gets or sets the "onClick" Attribute.
Declaration
public string OnClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
OnClientClick
Gets or sets the "OnClientClick" Property.
Declaration
public string OnClientClick { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
ResourceKey
Gets or sets the Resource Key used for the Control.
Declaration
public string ResourceKey { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
Text
Gets or sets the Text used for the Control.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
ToolTipKey
Gets or sets the tooltip resource key used for the Control.
Declaration
public string ToolTipKey { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
ValidationGroup
Gets or sets the Validation Group that this control "validates".
Declaration
public string ValidationGroup { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
Methods
| Improve this Doc View SourceCreateChildControls()
CreateChildControls overrides the Base class's method to correctly build the control based on the configuration.
Declaration
protected override void CreateChildControls()
OnButtonClick(EventArgs)
OnButtonClick raises the CommandButton control's Click event.
Declaration
protected virtual void OnButtonClick(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
OnCommand(CommandEventArgs)
OnCommand raises the CommandButton control's Command event.
Declaration
protected virtual void OnCommand(CommandEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
CommandEventArgs | e |
OnPreRender(EventArgs)
OnPreRender runs just before the Render phase of the Page Life Cycle.
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e |
RaiseImageClick(Object, ImageClickEventArgs)
RaiseImageClick runs when the Image button is clicked.
Declaration
protected void RaiseImageClick(object sender, ImageClickEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The object that triggers the event. |
ImageClickEventArgs | e | An ImageClickEventArgs object. |
Remarks
It raises a Command Event.
RegisterForPostback()
The CommandButton Class provides an enhanced Button control for DotNetNuke.
Declaration
public void RegisterForPostback()
Events
| Improve this Doc View SourceClick
The CommandButton Class provides an enhanced Button control for DotNetNuke.
Declaration
public event EventHandler Click
Event Type
Type | Description |
---|---|
EventHandler |
Command
The CommandButton Class provides an enhanced Button control for DotNetNuke.
Declaration
public event CommandEventHandler Command
Event Type
Type | Description |
---|---|
CommandEventHandler |