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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:54:11+00:00 2026-05-16T20:54:11+00:00

Hopefully someone can help, I’ve been playing with ASP.NET MVC 2 for a learning

  • 0

Hopefully someone can help, I’ve been playing with ASP.NET MVC 2 for a learning project. Recently I wanted to introduce some more advanced effects, one of which being sortable tables. Given that I have a number of other jquery controls, using a jquery control seemed a good idea!

I selected tablesorter v2 and set about adding it to my site.

  1. Ensured my tables I wanted styling had thead/tbody sections.
  2. Added the .js file to my Scripts directory.
  3. Added this to the top of my partial view <script src="<%= Url.Content("~/Scripts/jquery-ui-1.8.4.custom.min.js") %>" type="text/javascript"></script>
  4. (For info) also tried with that entry in the “Site.Master” view.
  5. Added id="leagueTable" to my table.
  6. Added <script type="text/javascript">
    $(document).ready(function () { $("#leagueTable").tablesorter(); });
    </script>
    to the partial view.

At this stage, I ran the site and everything worked as expected – e.g. I can sort the content but nothing visually changed much. Now to add the CSS….

  1. I downloaded the “blue.zip” and copied this all to /Content directory.
  2. Added the following to the top of the Site.Master, <link href="<%= Url.Content("~/Content/style.css") %>" type="text/css" rel="stylesheet" /> (NB. style.css is the name of the supplied CSS – originally I renamed this but after problems I reduced my changes to keep as supplied).

At this stage, I reran (ensuring to Ctrl-F5 to expire any caching) and hoped to see the fancy styling as shown in the examples… instead, whilst still functional, nothing is looking different.

I ran in chrome (with the Inspect element tools) and confirmed that the CSS is being downloaded – the jquery is being applied as I have the sort functionality working – but it claims nothing in the CSS is being used (using the Audits – “style.css: 100% (estimated) is not used by the current page.”).

What on earth am I doing wrong? Why am I not getting the styles applied? [20 years in the C++, real-time field, but new to web-development]

  • 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-16T20:54:12+00:00Added an answer on May 16, 2026 at 8:54 pm

    Well the solution, after lots of hunting and following the direction of @Matt turned out to be very simple – but I’ve double checked the tablesorter documentation and found it isn’t mentioned there!

    When you add either the “Blue” or “Green” themes supplied on the site, both require the table to be given a class name of tablesorter. I had falsely assumed that the jQuery (which worked) would have altered the table structure adding its own style classes that match those defined in the theme!

    So to recap:

    <script type="text/javascript">
        $(document).ready(function () { 
            $("#leagueTable1").tablesorter();
            $("#leagueTable2").tablesorter();
        });
    </script>
    
    <table id="leagueTable1">
        <thead>
        ...  // THIS TABLE WILL NOT BE STYLED
    </table>
    <table id="leagueTable2" class="tablesorter">
        <thead>
        ...  // THIS TABLE _WILL_ BE STYLED
    </table>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Slightly strange question, but hopefully someone can help. In essence, if the time was
Ok, this is bit of an obscure question, but hopefully someone can help me
Hopefully someone can shed a little light on an issue that I'm currently having
I have a weird date rounding problem that hopefully someone can solve. My client
Hopefully, this will be an easy answer for someone with Javascript time behind them...
Hopefully, I can get answers for each database server. For an outline of how
Hopefully I can do the problem justice, because it was too difficult to summarise
Hopefully this will not spark a religious war... We have a web based app
Hopefully I haven't misunderstood the meaning of duck typing, but from what I've read,
Hopefully a picture is worth a thousand lines of code because I don't want

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.