XhtmlMobileTextWriter.AddOnEnterForwardSetVar Method

Definition

Adds a provided variable 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 Mobile Apps & Sites with ASP.NET.

Overloads

AddOnEnterForwardSetVar(String)

Adds a provided variable name 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 Mobile Apps & Sites with ASP.NET.

AddOnEnterForwardSetVar(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 Mobile Apps & Sites with ASP.NET.

AddOnEnterForwardSetVar(String)

Adds a provided variable name 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 Mobile Apps & Sites with ASP.NET.

public:
 virtual void AddOnEnterForwardSetVar(System::String ^ var);
public virtual void AddOnEnterForwardSetVar (string var);
abstract member AddOnEnterForwardSetVar : string -> unit
override this.AddOnEnterForwardSetVar : string -> unit
Public Overridable Sub AddOnEnterForwardSetVar (var As String)

Parameters

var
String

The name of a variable to be embedded in a page.

Examples

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

<wml:onevent type="onenterforward">

<wml:refresh>

<wmlsetvar name="buttonSaveClicked" />

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

</wml:refresh>

</wml:onevent>

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">

<wml:refresh>

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

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

</wml:refresh>

</wml:onevent>

Remarks

Certain WML devices require a <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.

See also

Applies to

AddOnEnterForwardSetVar(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 Mobile Apps & Sites with ASP.NET.

public:
 virtual void AddOnEnterForwardSetVar(System::String ^ var, System::String ^ value);
public virtual void AddOnEnterForwardSetVar (string var, string value);
abstract member AddOnEnterForwardSetVar : string * string -> unit
override this.AddOnEnterForwardSetVar : string * string -> unit
Public Overridable Sub AddOnEnterForwardSetVar (var As String, value As String)

Parameters

var
String

The name of the variable.

value
String

The value for the variable.

Examples

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

<wml:onevent type="onenterforward">

<wml:refresh>

<wmlsetvar name="buttonSaveClicked" />

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

</wml:refresh>

</wml:onevent>

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">

<wml:refresh>

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

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

</wml:refresh>

</wml:onevent>

Remarks

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.

See also

Applies to