JQuery Ajax is sending GET instead of POST

Some problem on MVC. For some reason when I remove the [HttPost] it works as expected, even though I am telling ajax to use POST .

  • It turns out you need to use

type: “POST”

  • Even though the example on jQuery page says to use

method : “POST”

Now it POST’s

But after digging in the documentation I found this.

enter image description here

Leave a Comment