ScriptManager.RegisterOnSubmitStatement Method (Control, Type, String, String)
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public static void RegisterOnSubmitStatement( Control control, Type type, string key, string script )
The control that is registering the onsubmit statement.
The type of the client script statement. This parameter is usually specified by using the typeof operator (C#) or the GetType operator (Visual Basic) to retrieve the type of the control that is registering the script.
A unique identifier for the script statement.
The script to register.
Theadds script that is executed before the form is submitted, which lets you modify the submission or cancel it.
The script parameter of themethod can contain multiple script commands that are delimited by using semicolons (;).
For more information about HTML forms and the onsubmit event, see the World Wide Web Consortium (W3C) Web site.
Available since 3.5