changes to PageBase to implement the new RenderToString interface