简体   繁体   中英

MVC 4 with DataTables (nuget mvc.jquery.datatables)

I downloaded the nuget package mvc.jquery.datatables from https://github.com/mcintyre321/mvc.jquery.datatables it was designed to run with MVC 3.

I found that a few changes were required to work with MVC 4 as posted on http://www.distribucon.com/blog/jQueryDataTablesInASPNETMVC.aspx

I cannot see why I get the message "Loading data from server" and the method in my controller is never called.

我需要先注册JQuery包。

@Scripts.Render("~/bundles/jquery") 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM