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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:39:26+00:00 2026-05-24T05:39:26+00:00

Tablesorter not working on MVC3 web app on Visual Studio 2010? To reproduce the

  • 0

Tablesorter not working on MVC3 web app on Visual Studio 2010?

To reproduce the problem:

  • open Visual Studio 2010
  • create a new ASP.NET MVC 3 Web Application
  • Replace Views/Shared/_Layout.cshtml with:

    <!DOCTYPE html>
    <html>
    <head>
        <title>@ViewBag.Title</title>
        <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    
    @* This doesn't work and I don't know why *@
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.tablesorter.min.js")" type="text/javascript"></script>
    
    @*This works*@
    @*<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
    *@
    
    </head>
    <body>
        <div class="page">
    
        <div id="main">
            @RenderBody()
        </div>
        </div>
    </body>
    </html>
    
  • Replace Views/Home/Index.html with:

    <h2>debug jquery Kano</h2>
    <p>
        testing
    </p>
    
    <table id="theTable" class="tablesorter">
    <thead>
        <tr><th>Tic</th><th>Tac</th><th>Toe</th></tr>
    </thead>
    <tbody>
        <tr><td>o</td><td>o</td><td>x</td></tr>
        <tr><td>x</td><td>o</td><td>o</td></tr>
        <tr><td>o</td><td>x</td><td>x</td></tr>
    </tbody>
    </table>
    
    <script type="text/javascript">
    //    $(function () {
    //        alert("$: jQuery found!");
    //    });
    
        $(document).ready(function () {
            $("#theTable").tablesorter();
        });
    </script>
    
  • Download jquery.tablesorter.min.js from http://tablesorter.com and put into /Scripts directory.

  • Build and run the app.

As you will hopefully see, the tablesorter call in Index.cshtml doesn’t seem to successfully execute.

Thank you for your help!

Cheers,
Kevin

  • 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-24T05:39:28+00:00Added an answer on May 24, 2026 at 5:39 am

    The problem seems to be in the way that Javascript is cached. The workaround is to close all instances of the browser between runs and to minimize the use of the back buttons on the browser.

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

Sidebar

Related Questions

I'm working with tablesorter and I've not been able to find any documentation about
I am using the jQuery tablesorter plugin to sort a gridview in an asp.net
In JavaScript code of web application, the table sorter is defined by: $(#my-table).tablesorter({ headers:
I am using the tablesorter plugin: http://tablesorter.com/docs/ with jquery 1.4.2 Now my problem is
I am working on ASP .Net MVC 3 application. I am using the table
I'm using jQuery Tablesorter plugin, it works fine. However there is a problem. Imagine
I'm using a jQuery and the tablesorter plugin in my web page. My goal
I am using the jQuery tablesorter plugin . It seems to be working fine
hello i get some help here yesterday for a problem i was having tablesorter.
hello i am having a problem with dynamically added rows to jquery tablesorter, 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.