Public Shared Sub RegisterOnSubmitStatement ( _
control As Control, _
type As Type, _
key As String, _
script As String _
- control (Control)
The control that is registering the OnSubmit statement.
- type (Type)
The type of the client script statement. This parameter is usually specified by using the typeof (C# Reference) operator (C#) or the GetType Operator operator (Visual Basic) to retrieve the type of the control that is registering the script.
- key (String)
The string that uniquely identifies the script statement.
- script (String)
The script literal.
The script parameter of the RegisterOnSubmitStatement method can contain multiple script commands that are delimited with semicolons (;).
The RegisterOnSubmitStatement adds script that is executed before the page is submitted and gives you the opportunity to modify the submission or cancel it.
For more information on HTML forms and the onsubmit event, see the World Wide Web Consortium (W3C) Web site.
Assembly: System.Web.Extensions (Module: System.Web.Extensions)