After Render

After Render

am 26.01.2008 12:29:26 von unknown

Does anyone know if one can get to a representation of the rendered page (
after ) render. ?

RE: After Render

am 27.01.2008 03:23:01 von mily242

"View Source"/"Save As" in your browser?

HTH
--
Milosz


"Just Me" wrote:

> Does anyone know if one can get to a representation of the rendered page (
> after ) render. ?
>
>
>

Re: After Render

am 27.01.2008 21:40:05 von xyz_john

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

News List


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("

News List

", "

Headlines

");
// 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" wrote in message
news:u9pv57AYIHA.5448@TK2MSFTNGP04.phx.gbl...
> Does anyone know if one can get to a representation of the rendered page
> ( after ) render. ?
>