I recently had the need on a ASP.NET MVC/js project to wrap the results of a controller action in JSON so the middle-class UI could consume and then do one of: Redisplay the current active popup because validation failed (and I wanted to use the built-in MVC validation) Close the current popup and refresh a [...]
All posts in category javascript
Glorious Hack #97: Wrapping regular ViewResults as JSON for rich client-side processing
Posted by dtate on November 17, 2011
http://blog.davidtate.org/2011/11/glorious-hack-97-wrapping-regular-viewresults-as-json/