Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ScriptManager::GetRegisteredOnSubmitStatements Method

Retrieves a read-only collection of onsubmit statements that were previously registered with the Page object.

Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
ReadOnlyCollection<RegisteredScript^>^ GetRegisteredOnSubmitStatements()

Return Value

Type: System.Collections.ObjectModel::ReadOnlyCollection<RegisteredScript>
A generic collection that contains onsubmit statements.

An onsubmit statement is ECMAScript (JavaScript) that is executed when the form is submitted.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5
Show:
© 2015 Microsoft