Irwsoft NETCore Asp

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


The CommandButton control is a tag-helper to trigger something when user click it. This tag-helper 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 tag-helper has some properties like CommandName and CommandArgument that is important for FormTemplate tag-helper.

Example : Displays a CommandButton tag-helper.


C# code for CommandButton

// 1) Defines the CommandButton tag-helper for user to trigger displaying image.
<CommandButton ID="BTN1" SkinStyle="SimpleGrey" ImageUrl="~/Images/save.png"
     Text="Save" TextLocation="Bottom" CommandName="Save">
</CommandButton>


Related Topics :


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