---
title: "MultiView Control in ASP.Net"  
description: "A View control works as a container of common controls and a MultiView control works as a container of several View controls.  aspMultiView ID=\"MultiV"  
author: "Pushpendra Singh"  
published: 2010-10-25  
updated: 2020-08-02  
canonical: https://www.mindstick.com/articles/179/multiview-control-in-asp-dot-net  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 2 minutes  

---

# MultiView Control in ASP.Net

A [View](https://yourviews.mindstick.com/view/84701/layoffs-in-google-india-2023-view) [control](https://yourviews.mindstick.com/view/83439/bipartisan-gun-control-bill-passed-in-us-after-decades) works as a [container](https://www.mindstick.com/forum/34127/extjs-how-to-set-border-for-the-container) of [common](https://yourviews.mindstick.com/story/1215/the-most-common-sexually-transmitted-infections) [controls](https://www.mindstick.com/articles/66/how-to-create-controls-at-run-time-in-csharp-dot-net) and a MultiView control works as a container of several View controls.\

```
<asp:MultiView ID="MultiView1" runat="server">
```

![MultiView Control in ASP.Net](https://www.mindstick.com/mindstickarticle/0409c5a5-2f13-425a-9fb3-a39fb13120a7/images/e4bdece0-27d9-48db-a684-7618cc1ad8a0.png)

Here three LinkButton is used to show all these three view .When we click LinkButton one then view1 will be displayed and so on.

```
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Personal Information</asp:LinkButton>            <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">Contact info</asp:LinkButton>            <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LinkButton3_Click">Image</asp:LinkButton>    <asp:MultiView ID="MultiView1" runat="server">            <asp:View ID="view1" runat="server">                                Name                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>                                Id                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>                                Country                <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>            </asp:View>            <asp:View ID="view2" runat="server">                                Mob.No.             <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>                                Email Id                <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>            </asp:View>            <asp:View ID="view3" runat="server">                            <asp:Image ID="Image1" runat="server" ImageUrl="~/grass2.jpg"  Width="121px" />                         <asp:Image ID="Image2" runat="server" Height="88px" ImageUrl="~/2609grass.jpg" Width="134px" />            </asp:View>    </asp:MultiView>    protected void LinkButton1_Click(object sender, EventArgs e)    {         MultiView1.ActiveViewIndex = 0;    }     protected void LinkButton2_Click(object sender, EventArgs e)    {         MultiView1.ActiveViewIndex = 1;    }     protected void LinkButton3_Click(object sender, EventArgs e)    {         MultiView1.ActiveViewIndex = 2;    }  
```

The View control has a TabIndex which sets the TabInxex of a View. The TabIndex is mapped with the ActiveViewIndex of MultiView control. When you set MultiView1.ActiveViewIndex = 0; then first view will be active.

When you click LinkButton1 then Personal Information View will be displayed in the page

![MultiView Control in ASP.Net](https://www.mindstick.com/mindstickarticle/0409c5a5-2f13-425a-9fb3-a39fb13120a7/images/2f48d2ce-bec9-4da0-b3e1-90c1139e3342.png)

When you [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) LinkButton2 then [contact Information](https://answers.mindstick.com/qa/95174/how-do-i-add-contact-information-to-outlook-email) View will be displayed in the [page](https://yourviews.mindstick.com/view/83591/the-complete-guide-page-speed-optimisation-and-seo)

![MultiView Control in ASP.Net](https://www.mindstick.com/mindstickarticle/0409c5a5-2f13-425a-9fb3-a39fb13120a7/images/cf1640f3-d000-41f3-96eb-dbc462d14271.png)

When you click LinkButton3 then Image View will be displayed.

![MultiView Control in ASP.Net](https://www.mindstick.com/mindstickarticle/0409c5a5-2f13-425a-9fb3-a39fb13120a7/images/019358a5-b26a-4620-b871-e5883d03c011.png)

---

Original Source: https://www.mindstick.com/articles/179/multiview-control-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
