ConfirmButton

The implementation of this Web Control allows you to call your custom JavaScript function and post back to the server to execute managed code.

Properties

Field Name Definition
onBeforeSubmit

Specifies the name of the JavaScript function. A () is required at the end.

Inherits

  • System.Web.UI.WebControls.Button

Usage

  • Insert similar JavaScript as below in the .aspx file. The last line of the JavaScript function must include "return true" in order to run server-side post back. If not, after the confirmation message dialog is displayed, no action will be taken.
  • The ConfirmButton Web Control does not support the ASP.NET RequiredFieldValidator control. This is a limitation of this AgilePoint Web Control, if you have RequiredFieldValidators setup for other input Web Controls on the page, then ConfirmButton will not support the validation action.