Is there a way to get the “final HTML output” (what you get when you do “View source” in a browser) from code in ASP.NET MVC3 without making use of something like a WebRequest?
For example something like this:
string htmlCode = Url.GetHtml("Action", "Controller", new { id = 7 });
You can do it like this with RazorGenerator.Mvc which is available as a Nuget package. You can read more about it here: http://razorgenerator.codeplex.com/ It was intended for Unit testing but I think it is what your looking for.
Hope that helps you in what your trying to do.