Monday, 20 May 2013

How to use mutiview control in Asp.net web from

How to use multiview control in Asp.net web from

Step 1: First open your website first where you want to implement client script

Step 2 : Open you .aspx page

Step 3 : Add  Multiview control on page by drag and drop from Toolbox dialog

<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
</asp:MultiView>

Step 4 : After adding Multiview control add view control in multiview control

<asp:MultiView ID="MultiView1" runat="server" >
        <asp:View ID="View1" runat="server">
            <asp:Label ID="Label1" runat="server" Text="First View"></asp:Label>
        </asp:View>

        <asp:View ID="View2" runat="server">
             <asp:Label ID="Label2" runat="server" Text="Second View" ></asp:Label>
        </asp:View>
    </asp:MultiView>

Step 5 : After adding views in multiview control set the property of ActiveViewIndex as per your requirement if you want to active first view so type ActiveViewIndex="0" else ActiveViewIndex="1"

Step 6 : 

No comments:

Post a Comment

Thank you for your interest .