I've noticed that when using $.post() in jquery that the default contentType is application/x-www-form-urlencoded - when my asp.net mvc code needs to have contentType=application/json
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label ajaxsetup. Show all posts
Showing posts with label ajaxsetup. Show all posts
Tuesday, April 17, 2012
Jquery - How to make $.post() use contentType=application/json?
Subscribe to:
Posts (Atom)