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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:08:38+00:00 2026-06-16T13:08:38+00:00

I created a new MVC 4 web project (VS 2012 Express) and installed the

  • 0

I created a new MVC 4 web project (VS 2012 Express) and installed the Twitter Bootstrap package:

PM> Install-Package twitter.bootstrap.mvc4

Seems to be ok, but I needed to add DataTables (http://www.datatables.net/) but can’t seem to get it to work.

I edited the _BootstrapLayout.basic.cshtml file to include the datatables js:

<link href="@Styles.Url("~/Content/css-responsive")" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery-1.8.3.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.dataTables.js")" type="text/javascript"></script>

    @RenderSection("head", required: false)
    @Html.Partial("_html5shiv")

in my View i have added:

<script type="text/javascript" charset="utf-8">
            $(document).ready(function() {
                $('#example').dataTable();
            } );
        </script>

and set the ID of the Table to “example”

It doesn’t seem to be working though… the view was autogenerated by Visual Studio so i have also added the tags to the table…

  • 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-16T13:08:40+00:00Added an answer on June 16, 2026 at 1:08 pm

    It looks like it was a problem with including the JS files.

    _BootstrapLayout.basic.cshtml had:

         @Scripts.Render("~/js")
    

    when it should have been

         @Scripts.Render("~/Scripts")
    

    This solved the problem.

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

Sidebar

Related Questions

Using Visual Studio 2012, I created a new ASP.NET MVC 4 web project, using
In VS 2012 I created a new MVC 4 project starting from the internet
I created a new ASP.net MVC Web Application project. Inside my application, I created
I have created the following project structure for my new asp.net mvc project any
I added the FacebookWebMvc Nuget package to my MVC 3 Web Application project and
I created a new MVC 3 project. I ran the project and it loaded
When trying to deploy a new web api project which is created from the
Today, I created a new ASP.NET MVC 4 project - Internet application. With all
My project is created based on ASP.Net MVC Web API 4 application. If it's
I have created a new project MVC 3.0 in VS 2010. By default the

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.