UpdateModel and TryUpdateModel

-> UpdateModel() function inspects all the HttpRequest inputs such as posted From data, QueryString, Cookies and server variables and the populate the model object.
-> UpdateModel()  throws an exception if validation fails, whereas TryUpdateModel() will  never throws an exception.

Leave a Reply

Your email address will not be published. Required fields are marked *