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?


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