Does Not Work In MVC
Does Not Work In MVC
LacOniC
Posts: 3Questions: 1Answers: 0
I'm trying it in MVC via VS 2013. I followed -pretty simple- installation guide but nothing happens. Then i created a webforms project. There was no problem there. I tried almost everything in MVC but could not find any solution. Any suggestion?
This discussion has been closed.
Answers
Btw, I tried VS 2010 and it's MVC template. There was no problem.
Well. I found the problem via asp.net forums. In VS 2013 MVC Template, libraries are added (like JQuery) after footer. They are not in header section. So when i put "$("#myTable").DataTable();" to view (body), it does not work. I moved libraries to header section and problem has gone.
Hi,
Good to hear you found a solution. It sounds like
$(document).ready( ... )
might also be useful so functions only run once the page has been fully loaded.Allan