System.Web.UI.WebControls.MultiView.PreviousViewCommandName Field

Represents the command name associated with the previous 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 PreviousViewCommandName

Remarks

Use the MultiView.PreviousViewCommandName field to represent the "PrevView" 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 next System.Web.UI.WebControls.View, you can set the Button.CommandName property to the value of the MultiView.PreviousViewCommandName field, which is "PrevView". This causes the System.Web.UI.WebControls.MultiView control to automatically increment 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