This documentation is archived and is not being maintained.

WmlMobileTextWriter::RenderDoEvent Method

Renders a < do > event. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:  System.Web.UI.MobileControls.Adapters
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

protected:
void RenderDoEvent(
	String^ doType, 
	String^ target, 
	String^ arg, 
	WmlPostFieldType postBackType, 
	String^ text, 
	bool includeVariables
)

Parameters

doType
Type: System::String
The type of action to render. Maps to the type attribute of the < do > element. Usually "accept" or "options".
target
Type: System::String
The ID of the control targeted by the action. When the user selects the action, a postback is generated, targeting the control specified by this ID.
arg
Type: System::String
The argument for the action. The argument is included in the postback generated when the user selects the action.
postBackType
Type: System.Web.UI.MobileControls.Adapters::WmlPostFieldType
The WmlPostFieldType type used for arg.
text
Type: System::String
The label associated with the action. This usually appears as a softkey label on the device.
includeVariables
Type: System::Boolean
Whether to include all variables on the form when posting back to the server.

If the control you are targeting is the current form and you want to include all the variables when posting back to the server, you can use the RenderFormDoEvent method. Called internally by the writer and inherited classes.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: