Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81687

MVC 4

$
0
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


<script type="text/javascript">
$('#Main').dataTable({
"bPaginate": true,
"bFilter": true,
"bSort": true,
"bStateSave": true
});
</script>

I just need some basic code to get this started.

Thanks.

Viewing all articles
Browse latest Browse all 81687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>