Rendering a view to a string in ASP.NET MVC 2
- by Frank Rosario
We need to render an ActionResult to a string to add pages to our internal search engine index. We settled on this solution to render to string.
I've run into a problem with the ExecuteResult call used to process the View.
Code Snippet:
var oldController = controllerContext.RouteData.Values["controller"];…