Does Not Work In MVC

Does Not Work In MVC

LacOniCLacOniC 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?

Answers

  • LacOniCLacOniC Posts: 3Questions: 1Answers: 0

    Btw, I tried VS 2010 and it's MVC template. There was no problem.

  • LacOniCLacOniC Posts: 3Questions: 1Answers: 0

    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.

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin

    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

This discussion has been closed.