MobileControl.IsFormSubmitControl 方法

定義

如果控制項會送出表單,則傳回 true。 預設為 false。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

protected:
 virtual bool IsFormSubmitControl();
protected virtual bool IsFormSubmitControl ();
abstract member IsFormSubmitControl : unit -> bool
override this.IsFormSubmitControl : unit -> bool
Protected Overridable Function IsFormSubmitControl () As Boolean

傳回

如果控制項送出表單則為 true,否則為 false

備註

行動控件,例如 Command,可以覆寫這個方法,以判斷這是用於表單提交的控件。

藉由提供邏輯以程式設計方式判斷它們是否必須是 submit 控件,例如,藉由檢查特定屬性,即可擴充其他控制件。

注意

只有當控件實 IPostBackEventHandler 作方法來擷取回傳事件時,控件才會被視為窗體提交控件。 否則,即使方法傳回 true,也不會註冊預設事件處理程式。

適用於

另請參閱