"mid" <mi*********@midbarnospam.org> wrote in message
news:1v***************@midbarnospam.org...
Thanks John, I'm aware of page tracing but on a production page that would
no be a good idea...
I would like to have kind of a user control. I search the vs.net help
files
trying to find examples of wrapping the tracing options into some
variables
but no luck.
Look into the BeginRequest and EndRequest events in global.asax for the
timing. As to the page size, there's some ability to change which stream (or
textwriter) a page writes to. You could have it write to a StringWriter,
then check the size, then send the output to the original stream.
I don't recall the details of this, but look at the properties of the Page
class, including perhaps thing inherited from TemplateControl and Control.
John Saunders
P.S. And when you find out, be sure to tell us here!