XhtmlMobileTextWriter.AddOnEnterForwardSetVar Method (String)
Assembly: System.Web.Mobile (in system.web.mobile.dll)
Certain WML devices require a <wml:onevent> element to provide information for postback.
WML devices provide limited functionality for navigation and postback, and require that WML commands and variables are 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">
<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>
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.