Skins disappear when overriding Render method

J

John

I'm trying to override the page's render method, and capture the result for
processing, eg:

protected override void Render(HtmlTextWriter writer)
{
//base.Render(writer);
StringBuilder renderedOutput = new StringBuilder();
using (StringWriter strWriter = new StringWriter(renderedOutput))
{
using (HtmlTextWriter tWriter = new HtmlTextWriter(strWriter))
{
base.Render(tWriter);
}
}

// save renderedOutput.ToString() to a file
}

This works great, but my page theme (specifically gridview skins) arn't
applied! If I replace the call to base.Render() they work fine - does this
mean skins / themes arn't rendered in Render()???

Thanks,

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top