MVC 4

MVC 4

cmillercmiller Posts: 5Questions: 0Answers: 0
edited October 2012 in DataTables 1.9
I have used DataTables with MVC 3 but I'm now trying to incorporate it with MVC 4. The following line has been added to BundleConfig.cs:

bundles.Add(new ScriptBundle("~/bundles/DataTables").Include("~/Scripts/DataTables*"));


This is the error that is displayed:

Unhandled exception at line 969, column 5 in http://localhost:51987/
0x800a1391 - Microsoft JScript runtime error: '$' is undefined



$('#Main').dataTable({
"bPaginate": true,
"bFilter": true,
"bSort": true,
"bStateSave": true
});


I just need some basic code to get this started.

Thanks.

Replies

  • cmillercmiller Posts: 5Questions: 0Answers: 0
    Disregard. .NET was not recognizing JQuery.
This discussion has been closed.