aspx:CommandButton
This is a component that creates a submit or cancel button rendered as an HTML input element to act within Magentrix.
The button executes an action defined by a controller, and then either refreshes the current page or navigates to a different page based on the ActionResponse variable that is returned by the action.
<aspx:CommandButton runat='server' text='Save' action='ContactInsert'/>
Properties:
| Name | Comments |
|---|
| Action | HttpPost action to call on the controller once clicked on. |
| CausesValidation | True/false, default: true. |
| ObtainConfirmation | Receives a confirmation from the user before posting the Form back to the server. |
| ConfirmationMessage | By default, the message is "Are you sure?"; use this property to overwrite the default value. |
| Text | The button's label. |
| CssClass | Style CSS class of the button, default value is: "btn". |
| ShowProgress | True/False, shows a progress bar dialog while the data is posted back to the server and the browser is waiting for a response. |
| ReturnUrl | Redirects the page to the specified URL location after passing the action. |
| DefaultReturnUrl | Redirects the page to the specified URL location after passing the action if ReturnUrl attribute and retUrl query parameter is blank. |