---
title: OneClickSubmit
summary: API reference for OneClickSubmit.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-17
library: SAIF.Presentation.Web.Controls.V2
reference_type: package
---

# 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](../../business-rules.md#br-v2-058-one-click-submit-always-guards-the-client-click).

## Purpose
- Guards every click through the injected duplicate-submission script, with no opt-out [BR-V2-058](../../business-rules.md#br-v2-058-one-click-submit-always-guards-the-client-click).
- Registers its guard script once per page regardless of how many `OneClickSubmit` instances are hosted [BR-V2-059](../../business-rules.md#br-v2-059-duplicate-click-guard-script-registered-once-per-page).

## 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](../../business-rules.md#br-v2-060-default-css-class-is-normalbutton). |
| 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](../../business-rules.md#br-v2-059-duplicate-click-guard-script-registered-once-per-page).

## 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`
