web服务器控件MultiView 应用

<asp:MultiView ID="aMultiView" runat ="server" >

        <asp:View ID="view1" runat ="server" >

            Content for view 1 here.

        </asp:View>

        <asp:View ID="view2" runat ="server" >

            Content for view 2 here .

        </asp:View>

     </asp:MultiView>

     <!--MultiView导航-->

     <asp:MultiView ID="MultiView2" runat ="server">

        <asp:View ID="viewN" runat ="server" >

            <asp:Button ID="viewPrev" Text ="Previous" runat ="server" CommandName="PrevView" />

            <asp:Button ID="Button1" Text ="Next" runat ="server" CommandName="NextView" />

            <asp:Button ID="Button2" Text ="Start" runat ="server" CommandName="SwitchViewByIndex" CommandArgument ="0" />

        </asp:View>

     </asp:MultiView>

     <!--前一个,后一个,转跳到另一个(commandArgument值为view的编号) 其中命令分大小写-->

此控件可应用于分步完成的过程,和标签式页面.

原文地址:https://www.cnblogs.com/wenming205/p/1286224.html