WmlMobileTextWriter.RenderDoEvent 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
呈现事件 < do > 。 此 API 已过时。 有关如何开发 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 > type 属性。 通常为“accept”或“options”。
- target
- String
针对操作的控件的 ID。 当用户选择该操作时,将生成回发,以此 ID 指定的控件为目标。
- arg
- String
操作的参数。 当用户选择操作时生成的回发中包括该参数。
- postBackType
- WmlPostFieldType
用于 arg. WmlPostFieldType 的类型。
- text
- String
与操作关联的标签。 这通常显示为设备上的软键标签。
- includeVariables
- Boolean
回发到服务器时,是否在窗体中包含所有变量。
注解
如果要定位的控件是当前窗体,并且希望在发回服务器时包含所有变量,则可以使用该方法 RenderFormDoEvent 。 由编写器和继承的类在内部调用。