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

  • SEARCH
  • Home
  • 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 1017957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:47:04+00:00 2026-05-16T10:47:04+00:00

I have the following markup inside a master page <html xmlns=http://www.w3.org/1999/xhtml > <head runat=server>

  • 0

I have the following markup inside a master page

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
    <link href="../../Content/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/JQueryUI.js" type="text/javascript"></script>
</head>
<body>
    <div>
        <div id="tabs">
            <ul>
                <li><%=Html.TabLink("Home","Index","Home")%></li>
                <li><%=Html.TabLink("Posts","Index","Posts") %></li>
                <li><%=Html.TabLink("About", "Index", "About") %></li>
            </ul>
        </div>    
        <asp:ContentPlaceHolder ID="MainContent" runat="server">
        </asp:ContentPlaceHolder>
        <script type="text/javascript">
                $(function() {
                    $("#tabs").tabs();
                });
        </script>
    </div>
</body>
</html>

The TabLink is an extension method which renders the following markup:

<ul>
    <li><a href="/Home/Index"><span>Home</span></a></li>
    <li><a href="/Posts/Index"><span>Posts</span></a></li>
    <li><a href="/About/Index"><span>About</span></a></li>
</ul>

Each partial view (eg _index.aspx) has this markup:

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="tabs-1"> Hello from tab1
     </div>
</asp:Content>

jQuery tab loads each view asynchronously, however it also downloads the javascripts and css files every time a tab is clicked. And also it left the link markup there as well(meaning together w/ the jquerified tab), and doesn’t work at all in IE8 and inconsistent with firefox and chrome.

Anything I missed or suggestion would be greatly appreciated.

  • 1 1 Answer
  • 1 View
  • 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-16T10:47:05+00:00Added an answer on May 16, 2026 at 10:47 am

    You should use partial views, but it seems you use regular views with master page.

    Partial view will look like this

    <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<object>" %>
    
    <div id="tabs-1"> 
        Hello from tab1
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following simple page: <!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd>
I have the following markup: <p class=managebox> <button value=Add page> <img src=page_add.png alt=Add more
I have following HTML markup, <div id=subcontent_l> <p> <a href=/membership-packages/><img height=202 width=644 alt= src=http://74.52.72.231/wp-content/uploads/2010/06/banner1.jpg
I have the following button on a .aspx page: <asp:Button runat=server ID=bntLogin OnClick=bntLogin_Click Text=Login
I have following HTML+CSS markup: <div id=protofade style=position: relative;> <div style=position: absolute;><img src=slide-01.jpg></div> <div
I have the following XAML: <UserControl x:Class=WpfWindow.MyControl xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006 xmlns:d=http://schemas.microsoft.com/expression/blend/2008 mc:Ignorable=d d:DesignHeight=300 d:DesignWidth=300>
let's say i have the following usercontrol : <UserControl x:Class=TVPage.SilverlightControl1 xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml xmlns:d=http://schemas.microsoft.com/expression/blend/2008 xmlns:mc=http://schemas.openxmlformats.org/markup-compatibility/2006
I have the following HTML Code, If I have a lot of text inside
I have following markup, <div custom=> <div> <template> <a custom=> (anything inside template should
I have the following HTML markup <div id=contents> <div id=content_nav> something goes here </div>

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.