MVC 4
MVC 4
cmiller
Posts: 5Questions: 0Answers: 0
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.
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.
This discussion has been closed.
Replies