共用方式為


WmlMobileTextWriter.RenderDoEvent 方法

定義

呈現 < do > 事件。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

protected:
 void RenderDoEvent(System::String ^ doType, System::String ^ target, System::String ^ arg, System::Web::UI::MobileControls::Adapters::WmlPostFieldType postBackType, System::String ^ text, bool includeVariables);
protected void RenderDoEvent (string doType, string target, string arg, System.Web.UI.MobileControls.Adapters.WmlPostFieldType postBackType, string text, bool includeVariables);
member this.RenderDoEvent : string * string * string * System.Web.UI.MobileControls.Adapters.WmlPostFieldType * string * bool -> unit
Protected Sub RenderDoEvent (doType As String, target As String, arg As String, postBackType As WmlPostFieldType, text As String, includeVariables As Boolean)

參數

doType
String

要呈現的動作型別。 對應至 < do > 項目的型別屬性。 通常是 "accept" 或 "options"。

target
String

動作設為目標的控制項 ID。 當使用者選取動作時,系統會產生回傳,將這個 ID 指定的控制項設為目標。

arg
String

動作的引數。 引數包含在使用者選取動作時所產生的回傳中。

postBackType
WmlPostFieldType

用於argWmlPostFieldType型別。

text
String

與動作關聯的標籤。 通常會顯示為裝置的螢幕鍵盤標籤。

includeVariables
Boolean

回傳至伺服器時,是否在表單上包含所有的變數。

備註

如果您要設為目標的控制件是目前的表單,而且您想要在回傳至伺服器時包含所有變數,您可以使用 RenderFormDoEvent 方法。 在內部由寫入器及繼承類別呼叫。

適用於