Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6235547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:41:08+00:00 2026-05-24T10:41:08+00:00

I am using multiview with asp menu creating tabs in menu. but by switching

  • 0

I am using multiview with asp menu creating tabs in menu.
but by switching to different tabs.. my content on tabs remain same.
following is code

<asp:Menu
    ID="Menu1"
    Width="168px"
    runat="server"
    Orientation="Horizontal"
    StaticEnableDefaultPopOutImage="False"
    OnMenuItemClick="Menu1_MenuItemClick">
    <Items>
        <asp:MenuItem  Text="TAB1" Value="0"></asp:MenuItem>
        <asp:MenuItem  Text="TAB2" Value="1"></asp:MenuItem>
        <asp:MenuItem   Text="TAB3" Value="2"></asp:MenuItem>
    </Items>
</asp:Menu>
<asp:MultiView 
    ID="MultiView1"
    runat="server"
    ActiveViewIndex="0"  >
    <asp:View ID="tab1" runat="server"  >
        <table width="200" height="100" cellpadding=0 cellspacing=0>
            <tr valign="top">
                <td class="TabArea" style="width: 600px">
                    <br />
                    <br />
                    TAB VIEW 1
                    INSERT YOUR CONENT IN HERE
                    CHANGE SELECTED IMAGE URL AS NECESSARY
                </td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="tab2" runat="server">
        <table width="200px" height="100px" cellpadding=0 cellspacing=0>
            <tr valign="top">
                <td class="TabArea" style="width: 600px">
                    <br />
                    <br />
                    TAB VIEW 2
                    INSERT YOUR CONENT IN HERE
                    CHANGE SELECTED IMAGE URL AS NECESSARY
                </td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="tab3" runat="server">
        <table width="200px" height="100px" cellpadding=0 cellspacing=0>
            <tr valign="top">
                <td class="TabArea" style="width: 600px">
                    <br />
                    <br />
                     TAB VIEW 3
                     INSERT YOUR CONENT IN HERE
                     CHANGE SELECTED IMAGE URL AS NECESSARY
                </td>
            </tr>
        </table>
    </asp:View>
</asp:MultiView>

by clicking on different tabs my content still shows of first tab any idea why.

You help will be appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:41:09+00:00Added an answer on May 24, 2026 at 10:41 am

    I believe you need to handle the OnMenuItemClick in your code-behind:

    protected void Menu1_MenuItemClick(object sender, MenuItemEventArgs e)
    {
    
        string menuTab = e.MenuItem.Value;
    
        switch (menuTab)
        {
            case "0":
                MultiView1.SetActiveView(tab1);
                break;
            case "1":
                MultiView1.SetActiveView(tab2);
                break;
            case "2":
                MultiView1.SetActiveView(tabe);
                break;
            default:
                break;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
I have the following structure <asp:UpdatePanel ID=MyUpdatePanel runat=server> <ContentTemplate> <asp:MultiView ID=MyViews runat=server> <asp:View ID=List
I'm using an asp.net MultiView control with 2 Views inside. First view has a
Using ASP.NET MVC there are situations (such as form submission) that may require a
I want to build web pages using ASP.NET 4.0 (C#), and I want some
I have a multiview application using a tab bar to switch views. One is
I have question here, i design multiview application using view base template. Page 1
I'm trying to use a multiview control. I'm first creating some views and add
I am using multiview index to insert the news details. In the first view
I know about this problem but here i am with something different situation. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.