WmlMobileTextWriter.RenderDoEvent 方法

定義

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

C#
protected void RenderDoEvent(string doType, string target, string arg, System.Web.UI.MobileControls.Adapters.WmlPostFieldType postBackType, string text, bool includeVariables);

參數

doType
String

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

target
String

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

arg
String

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

postBackType
WmlPostFieldType

用於argWmlPostFieldType型別。

text
String

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

includeVariables
Boolean

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

備註

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

適用於

產品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1