System.Web.UI.Page.RegisterOnSubmitStatement Method

Allows a page to access the client OnSubmit event. The script should be a function call to client code registered elsewhere.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.Obsolete]
public void RegisterOnSubmitStatement (string key, string script)

Parameters

key
Unique key that identifies a script block.
script
The client-side script to be sent to the client.

Remarks

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0