All posts in category mvc

Glorious Hack #97: Wrapping regular ViewResults as JSON for rich client-side processing

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 […]