Through the MultiView control, we can easily organize multiple items into several views. To facilitate switching in the view, the control discloses four command read-only fields. You can use the CommandName and CommandArgument attributes of the Button to conveniently call
NextViewCommandName-locate to the next view
Previusviewcommandname-locate to the previous view
SwitchViewByIDCommandName-locate the view ID
SwitchViewByIndexCommandName-locate the corresponding index
For example:
<Asp: multiview ActiveViewIndex = "0" runat = "server">
<Asp: View ID = "firstView" runat = "server">
<Span> page 1 </span>
<Asp: Button ID = "btnNext" runat = "server" Text = "next page" CommandName = "NextView"/>
</Asp: View>
<Asp: View ID = "secondView" runat = "server">
<Span> page 2 </span>
<Asp: Button ID = "btnPrev" runat = "server" Text = "Previous Page" CommandName = "PrevView"/> <asp: button ID = "btnNext2" runat = "server" Text = "next page" CommandName = "NextView"/>
</Asp: View>
<Asp: View ID = "thirdView" runat = "server">
<Span> page 3 </span>
<Asp: Button ID = "btnFirst" runat = "server" Text = "first page" CommandName = "SwitchViewByID" CommandArgument = "View1"/>
<Asp: Button ID = "btnSecond" runat = "server" Text = "Page 2" CommandName = "SwitchViewByIndex" CommandArgument = "1"/>
</Asp: View>
</Asp: multiview>