Page.RegisterOnSubmitStatement(String, String) 메서드

정의

주의

The recommended alternative is ClientScript.RegisterOnSubmitStatement(Type type, string key, string script). http://go.microsoft.com/fwlink/?linkid=14202

페이지에서 클라이언트 OnSubmit 이벤트에 액세스할 수 있도록 허용합니다. 스크립트는 다른 곳에 등록된 클라이언트 코드에 대한 함수 호출이어야 합니다.

public:
 void RegisterOnSubmitStatement(System::String ^ key, System::String ^ script);
public void RegisterOnSubmitStatement(string key, string script);
[System.Obsolete("The recommended alternative is ClientScript.RegisterOnSubmitStatement(Type type, string key, string script). http://go.microsoft.com/fwlink/?linkid=14202")]
public void RegisterOnSubmitStatement(string key, string script);
member this.RegisterOnSubmitStatement : string * string -> unit
[<System.Obsolete("The recommended alternative is ClientScript.RegisterOnSubmitStatement(Type type, string key, string script). http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.RegisterOnSubmitStatement : string * string -> unit
Public Sub RegisterOnSubmitStatement (key As String, script As String)

매개 변수

key
String

스크립트 블록을 식별하는 고유 키입니다.

script
String

클라이언트로 보낼 클라이언트 쪽 스크립트입니다.

특성

설명

메서드는 RegisterOnSubmitStatement 더 이상 사용되지 않습니다. 클래스에서 RegisterOnSubmitStatement 메서드를 ClientScriptManager 사용합니다.

적용 대상

추가 정보