[Mono-list] Capturing a Controls Rendered Html

Gonzalo Paniagua Javier gonzalo.reply.to.the.list.iam.subscribed@ximian.com
Thu, 16 Sep 2004 23:51:17 -0400


On Thu, 2004-09-16 at 16:13, Matthew Metnetsky wrote:
> I have a UserControl which contains all of my web pages header information
> (menus etc).  The headers content is static 99.999% of the time, so I would
> like to capture the rendered output of the control and toss it into an HTML
> file for normal inclusion (and remove it when the file needs updating.  But
> I'm getting lost following the API from UserControl -> Control ->
> HtmlTextWriter -> TextWriter ->->->

Or use caching (partial caching)...
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconCachingPortionsOfASPNETPage.asp

-Gonzalo