• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class CommandButton

The CommandButton Class provides an enhanced Button control for DotNetNuke.

Inheritance
System.Object
CommandButton
ActionCommandButton
Implements
INamingContainer
Namespace: DotNetNuke.UI.WebControls
Assembly: DotNetNuke.dll
Syntax
public class CommandButton : WebControl

Properties

| Improve this Doc View Source

ButtonSeparator

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

IconKey

Gets or sets the Icon Key to obtain ImageURL.

Declaration
public string IconKey { get; set; }
Property Value
Type Description
System.String

A String.

| Improve this Doc View Source

IconSize

Gets or sets the Icon Siz to obtain ImageURL.

Declaration
public string IconSize { get; set; }
Property Value
Type Description
System.String

A String.

| Improve this Doc View Source

IconStyle

Gets or sets the Icon Style to obtain ImageURL.

Declaration
public string IconStyle { get; set; }
Property Value
Type Description
System.String

A String.

| Improve this Doc View Source

ImageUrl

Gets or sets the Image used for the Icon.

Declaration
public string ImageUrl { get; set; }
Property Value
Type Description
System.String

A String.

| Improve this Doc View Source

LocalResourceFile

The CommandButton Class provides an enhanced Button control for DotNetNuke.

Declaration
public string LocalResourceFile { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

OnClick

Gets or sets the "onClick" Attribute.

Declaration
public string OnClick { get; set; }
Property Value
Type Description
System.String

A String.

| Improve this Doc View Source

OnClientClick

Gets or sets the "OnClientClick" Property.

Declaration
public string OnClientClick { get; set; }
Property Value
Type Description
System.String

A String.

| Improve this Doc View Source

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.

| Improve this Doc View Source

Text

Gets or sets the Text used for the Control.

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String

A String.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

CreateChildControls()

CreateChildControls overrides the Base class's method to correctly build the control based on the configuration.

Declaration
protected override void CreateChildControls()
| Improve this Doc View Source

OnButtonClick(EventArgs)

OnButtonClick raises the CommandButton control's Click event.

Declaration
protected virtual void OnButtonClick(EventArgs e)
Parameters
Type Name Description
EventArgs e
| Improve this Doc View Source

OnCommand(CommandEventArgs)

OnCommand raises the CommandButton control's Command event.

Declaration
protected virtual void OnCommand(CommandEventArgs e)
Parameters
Type Name Description
CommandEventArgs e
| Improve this Doc View Source

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
| Improve this Doc View Source

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.

| Improve this Doc View Source

RegisterForPostback()

The CommandButton Class provides an enhanced Button control for DotNetNuke.

Declaration
public void RegisterForPostback()

Events

| Improve this Doc View Source

Click

The CommandButton Class provides an enhanced Button control for DotNetNuke.

Declaration
public event EventHandler Click
Event Type
Type Description
EventHandler
| Improve this Doc View Source

Command

The CommandButton Class provides an enhanced Button control for DotNetNuke.

Declaration
public event CommandEventHandler Command
Event Type
Type Description
CommandEventHandler

Implements

INamingContainer

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS