Allows a page to access the client OnSubmit event. The script should be a function call to client code registered elsewhere.
The Page.RegisterOnSubmitStatement(string, string) method has been deprecated. Use the ClientScriptManager.RegisterOnSubmitStatement(Type, string, string) method in the System.Web.UI.ClientScriptManager class.