Export (0) Print
Expand All

XhtmlMobileTextWriter.AddOnEnterForwardSetVar Method (String, String)

Adds a provided variable name and value to a list of variables to be embedded in pages for WML devices. 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.XhtmlAdapters
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public virtual void AddOnEnterForwardSetVar(
	string var,
	string value


Type: System.String

The name of the variable.

Type: System.String

The value for the variable.

Certain WML 2.0 devices require a WML <wml:onevent> element to provide information for postback.

WML devices provide limited functionality for navigation and postback, and require WML commands and variables to be written to the page.

This method is used primarily by developers of custom mobile page and control adapters.

When rendering the page, the following <wml:onevent> structure might be included in the page's markup:

<wml:onevent type="onenterforward">


<wmlsetvar name="buttonSaveClicked" />

<wmlsetvar name="nextPage" value="3" />



Depending on the user's actions, the values might be modified by scripts on the page to return the following structure on postback:

<wml:onevent type="onenterforward">


<wmlsetvar name="buttonSaveClicked" value="true" />

<wmlsetvar name="nextPage" value="9" />



.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
© 2015 Microsoft