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 8101385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:58:10+00:00 2026-06-05T22:58:10+00:00

Is it possible to implement navigation using jquery ui tabs instead of standard tabs

  • 0

Is it possible to implement navigation using jquery ui tabs instead of standard tabs in asp.net mvc 3 project? Tabs very similar as on this site (Questions, Tags, Users…). Have any examples to do that?

Here is my implementation.

1) I have created standard MVC 3 project with razor view engine. Menu in Layout page looks like this.

<div id="menucontainer">
    <ul id="menu">
        <li>@Html.ActionLink("Home", "Index", "Home", null, new { title="Index"})</li>
        <li>@Html.ActionLink("About", "About", "Home", null, new { title="About"})</li>
    </ul>
</div>

2) Here is my HomeController actions.

public PartialViewResult Index()
{
    ViewBag.Message = "Welcome to ASP.NET MVC!";
    return PartialView();
}

public PartialViewResult About()
{
    return PartialView();
}

public ViewResult Default()
{
    return View();
}

3) Also I have changed Global.asax.cs to show Default page.

public static void RegisterRoutes(RouteCollection routes)
{
    routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

    routes.MapRoute(
        "Default", // Route name
        "{controller}/{action}/{id}", // URL with parameters
        new { controller = "Home", action = "Default", id = UrlParameter.Optional } // Parameter defaults
    );

}

4) And finally here is my script to apply tabs behavior.

$(document).ready(function() {
$('#menucontainer').tabs();
$("menucontainer").bind('tabsselect',
    function(event, ui) {
        document.title = ui.tab.title;
    }
);});

So jQuery ui just adds additional divs for each tab to the page (2 in this case) and after that div#main appends. I want just replace content of div#main dynamically after user goes to other tab in menu bar. Now it looks like this.

<div id="menucontainer">
    ...
    <div id="Index">
        Content of Index tab.
    </div>
    <div id="About">
        Content of About tab.
    </div>
</div>
<div id="main">
    Content of the page.
</div>
  • 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-06-05T22:58:11+00:00Added an answer on June 5, 2026 at 10:58 pm

    Make sure you have defined the ui-tabs-hide CSS class in order to hide inactive tabs:

    .ui-tabs-hide {
        display: none;
    }
    

    The way jQuery UI Tabs work is that after changing the tab it simply adds the ui-tabs-hide to all other tabs and removes it from the currently visible tab after refreshing its content from the AJAX call.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to implement SQL Session State with ASP.NET MVC without the addition
Is it possible to implement some kind of timeout (time limit) for fork using
Is it possible to implement long press in JavaScript (or jQuery)? How? (source: androinica.com
In a silverlight composite application, is it possible to implement navigation, so that the
Is it possible to add buttons to the navigation bar using the IPhone SDK?
i have to create a new asp.net mvc page that integrates content provided by
I have a current system using IIS 6 and 7, written in ASP.NET with
My plan is to create a a two-pane page using ASP MVC 3. The
I'm trying to implement tabs for navigation in an Android app. Since TabActivity and
Is possible to implement this kind of animation (Screenshot below) on UITableView when expanding

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.