Irwsoft Web Control

CommandButton
Brief Information
DescriptionA command button control to trigger something when user click it.
Features
  • Displays either text and/or image.
  • Text location.
  • Command Name.
  • Command Argument.
CommandButton control
A CommandButton control with a CommandName, a Text and an ImageUrl.


The CommandButton control is a control to trigger something when user click it. This control have feature to display either text and/or image. The TextLocation property will determine the text location from image.


Display

  • Image only
    Button with image only
  • Text only
    Button with text only

Text Location

  • Right
    Text location at right side
  • Left
    Text location at left side
  • Bottom
    Text location at bottom side
  • Top
    Text location at top side

The control implements System.Web.UI.WebControls.IButtonControl that provides some properties like CommandName and CommandArgument that is important for FormTemplate control.

Example : Displays a CommandButton control.


C# code for CommandButton

// 1) Defines the CommandButton control for user to trigger displaying image.
<irw:CommandButton ID="BTN1" runat="server" SkinStyle="SimpleGrey" ImageUrl="~/Images/save.png"
     Text="Save" TextLocation="Bottom" CommandName="Save" OnClick="BTN1_Click">
</irw:CommandButton>


Related Topics :


Irwsoft Data Ultimate Edition 4.0 supports data-schema extension (entity framework, linq to sql, simple class, and etc).