ASP.NET MVC Error in HttpPost Create - Null Values Passed in Model after POST - Model Binding Issue?
问题 I have a problem with what should be a very simple ASP.NET MVC Create method. After I populate data and submit the form in the Create view (and all the validation rules are passed), the instance of the model passed to the POST method will contain either null or 0 values for every field and ModelState.IsValid will return false. I use Firebug to check the POST form parameters, and the submit action obviously has posted all the parameters from the fields. However, these parameters are not bound