I have a need to capture all the rendered output/html of a view so that I can persist the result. How can I do this within ASP.NET MVC?
A:
There's a great post about partial output caching and includes code about how to capture output using an attribute.
The post: http://blog.codeville.net/2008/10/15/partial-output-caching-in-aspnet-mvc/
The code: http://blog.codeville.net/blogfiles/2008/October/ActionOutputCacheAttribute.cs
Chad Moran
2009-05-07 15:39:08