What does the MVC Controller.UpdateModel<T>(T) actually try to do?

Posted by unanswered on Stack Overflow See other posts from Stack Overflow or by unanswered
Published on 2009-08-04T21:43:00Z Indexed on 2010/04/04 8:03 UTC
Read the original article Hit count: 229

Filed under:

When I submit my MVC Page I get an IvalidOperationException from System.Web.Mvc Controller object in the UpdateModel method.

the MSDN documentation states that this method does the following:

Updates the specified model instance using values from the controller's current value provider.

Is the value provider referencing the current Request object?

Or where exactly does it get the values that it is using to update the model?

And what specifically does the UpdateModel method check and what does it 'mean' when it says that

The model of type 'abcXYZ' was not successfully updated

Thanks

© Stack Overflow or respective owner

Related posts about asp.net-mvc