Detecting and fixing Ajax.BeginForm and Partial View stale data

added by Leniel Macaferi
9/13/2013 3:14:51 PM


This blog post describes a technical hurdle and how to solve it with some (actually 2) clever lines of code. In a recent ASP.NET MVC application a difficult situation appeared: a Save action method returns a PartialView but the Model value passed to this partial view was not being displayed correctly under the covers, that is, the View was keeping the previous/stale Model valu