Skip to content

OneClickSubmit

A submit button that always registers a client-side duplicate-click guard, so pages using it are protected from double-submission without adding their own guard script BR-V2-058.

Purpose

  • Guards every click through the injected duplicate-submission script, with no opt-out BR-V2-058.
  • Registers its guard script once per page regardless of how many OneClickSubmit instances are hosted BR-V2-059.

Context

  • Namespace: SAIF.Presentation.Web.Controls.V2
  • Assembly/package: SAIF.Presentation.Web.Controls.V2 (packaged in SAIF.BOF.Presentation.Web.Infragistics111.nuspec)

Public members

Member Signature Purpose
CssClass Public Overrides Property CssClass As String Defaults to NormalButton when not explicitly set BR-V2-060.
OnLoad Protected Overrides Sub OnLoad(e As EventArgs) Registers the page-level duplicate-click guard script on first use.
Render Public Overrides Sub Render(writer As HtmlTextWriter) Attaches the client-side guard call to the button's click handler before delegating to the base render.

Behavioral notes

  • The guard script is registered idempotently — one registration serves every OneClickSubmit on the page BR-V2-059.

Constraints and usage notes

  • Cannot be configured to skip the duplicate-click guard; this is an always-on behavior of the control.

Sources

  • SAIF.Presentation.Web.Controls.V2/OneClickSubmitControl.vb