ScriptManager::RegisterOnSubmitStatement Method (Page^, Type^, String^, String^)
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
public: static void RegisterOnSubmitStatement( Page^ page, Type^ type, String^ key, String^ script )
The page object 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.
Code from any earlier asynchronous postbacks is not removed. New asynchronous postbacks append code to any existing code for the onsubmit statement.
To register code for a control that is inside an UpdatePanel control so that the code is registered only when the UpdatePanel control is updated, use the RegisterOnSubmitStatement(Control^, Type^, String^, String^) overload of this method.
Available since 3.5