XhtmlMobileTextWriter.AddOnEnterForwardSetVar 方法

定义

将提供的变量添加到要嵌入到 WML 设备页中的变量的列表中。Adds a provided variable to a list of variables to be embedded in pages for WML devices. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

重载

AddOnEnterForwardSetVar(String)

将提供的变量名称添加到要嵌入 WML 设备页中的变量的列表中。Adds a provided variable name to a list of variables to be embedded in pages for WML devices. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

AddOnEnterForwardSetVar(String, String)

将提供的变量名称和值添加到要嵌入 WML 设备页中的变量的列表中。Adds a provided variable name and value to a list of variables to be embedded in pages for WML devices. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

AddOnEnterForwardSetVar(String)

将提供的变量名称添加到要嵌入 WML 设备页中的变量的列表中。Adds a provided variable name to a list of variables to be embedded in pages for WML devices. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。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)

参数

var
String

要嵌入页中的变量的名称。The name of a variable to be embedded in a page.

示例

呈现页时,以下 <wml:onevent> 结构可能包含在页的标记中: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>

注解

某些 WML 设备需要一个 <wml:onevent> 元素来提供用于回发的信息。Certain WML devices require a <wml:onevent> element to provide information for postback.

WML 设备提供有限的导航和回发功能,并要求将 WML 命令和变量写入页面。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.

适用于

AddOnEnterForwardSetVar(String, String)

将提供的变量名称和值添加到要嵌入 WML 设备页中的变量的列表中。Adds a provided variable name and value to a list of variables to be embedded in pages for WML devices. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。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)

参数

var
String

变量名。The name of the variable.

value
String

变量的值。The value for the variable.

示例

呈现页时,以下 <wml:onevent> 结构可能包含在页的标记中: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>

注解

某些 WML 2.0 设备需要 WML <wml:onevent> 元素来提供用于回发的信息。Certain WML 2.0 devices require a WML <wml:onevent> element to provide information for postback.

WML 设备提供有限的导航和回发功能,并要求将 WML 命令和变量写入页面。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.

适用于