You can get the page output by grabbing the render event to put the rendered
output into a string.
protected override void Render(HtmlTextWriter output)
{
StringWriter sw;
HtmlTextWriter htmltw;
sw = new StringWriter();
htmltw = new HtmlTextWriter(sw);
base.Render(htmltw);
StringBuilder temp = sw.GetStringBuilder();
// here do whatever you like with temp
base.Render(output);
}
Its a commonly asked question, so lots of example on google.
--
--
Regards