System.Web.UI.WebControls.MultiView.NextViewCommandName Field

Represents the command name associated with the next System.Web.UI.WebControls.View control to display in a System.Web.UI.WebControls.MultiView control. This field is read-only.

Syntax

public static readonly string NextViewCommandName

Remarks

Use the MultiView.NextViewCommandName field to represent the "NextView" command name.

You can use the value of this field to take advantage of the System.Web.UI.WebControls.MultiView control's automatic updating of the active System.Web.UI.WebControls.View control. For example, if a System.Web.UI.WebControls.View control contains a System.Web.UI.WebControls.Button control that navigates to the previous System.Web.UI.WebControls.View, you can set the Button.CommandName property to the value of the MultiView.NextViewCommandName field, which is "NextView". This causes the System.Web.UI.WebControls.MultiView control to automatically decrement the value of the MultiView.ActiveViewIndex property when the button is clicked.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0