tags:

views:

114

answers:

1

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