I want to extend the WebFormViewEngine so that I can perform some post-processing - I want it to do it\'s stuff, then hand me the Html back, so I can do put some final touches t
Okay, I have never done this before but I looked through reflector and the MVC assemblies. It appears as though you it might be possible to extend the ViewPage and the ViewPage and the ViewMasterPage object with your object. The in your own object you can override the render method and get a handle tot the HtmlTextWriter. Then just pass it on to the base and let it do it's thing. Something like this (this is un-tested and is only theoretical, there may be more methods you need to override.) I recommend using reflector to see how it is done now and even how other view engines like Spark do it.
public class MyPage : ViewPage
{
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
//Do custom stuff here
base.Render(writer);
}
}
public class MyPage : MyPage where TModel : class
{
}