Pretty sure whats written in the render event is a representation of the
rendered page
protected override void Render(HtmlTextWriter writer) {
// extract all html and override <h2>News List</h2>
System.IO.StringWriter str = new System.IO.StringWriter();
HtmlTextWriter wrt = new HtmlTextWriter(str);
// render html
base.Render(wrt); //CAPTURE THE CURRENT PAGE HTML SOURCE
wrt.Close();
string html = str.ToString();
//do something with the rendered output
html = html.Replace("<h2>News List</h2>", "<h2>Headlines</h2>");
// write the new html to the page
writer.Write(html);
}
Whatever is in the string html at this point is the rendered page output
Regards
John Timney (MVP)
http://www.johntimney.com http://www.johntimney.com/blog
"Just Me" <news.microsoft.comwrote in message
news:u9**************@TK2MSFTNGP04.phx.gbl...
Does anyone know if one can get to a representation of the rendered page
( after ) render. ?