In a create view page, all jquery validation pass, when the create object got passed into action, the UpdateModel fails. Is there anyway that I can find which field explicitly fail the update? By watching "e" in Debug Mode?
try {
UpdateModel(house_info); }
catch (Exception e)
{ throw e; }
You can inspect
ModelState
for errors. The following will give you the list of each property that has an error and the first error associated with the propertyAdditionally, the
ModelState
has a.IsValid
property which you should probably be checking rather than using exception handling.A controller action would perhaps look like: