Do the POST parameters need some sort of routing configuration in ASP.NET MVC? If I write a method in my controller:
DoSomething(bool DoItRightNow)
and then pass in the POST parameters the DoItRightNow value, then will it work?
Also, in what format the POST parameters should be for MVC to understand them? Is JSON going to be understood by MVC?
Do the POST parameters need some sort of routing configuration in ASP.NET MVC? If
Share
No.
Yes.
application/x-www-form-urlencodedormultipart/form-dataOut of the box in ASP.NET MVC 3 and a bit of a coding in previous versions.