asp.net mvc - Strongly typed MVC update action and jquery serialize problem -


I have an updated action that I post to use jquery serialize

 < Code> public verb update ([bind (remove = "id")] person) {// content return material ("some results"); }   

The problem is that jquery generates a string in my format with the following format: IsMale = on & amp; Name = joe ... etc (where there is a checkbox on the IsMale website and bool in the model)

But ASP.NET does not recognize valid hair as MVC "b", and then every time I am lying Get in the form of false. Wanted solution: Either get Jquery to give me true / false values ​​when serializing or somehow understand MVC = true ..

Any suggestions on how to ?

Did you set the "value" property on your checkbox input manually to "true" have tried?

In addition to HTML By using the checkbox correctly, you can use the

version which you are using MVC?

Comments