Hi all,
How do I write the output of a user control to an html file, rather
than rendering it onto the parent page?
I was thinking of overriding the render method of the user control???
Any ideas,
Thanks,
Stewart
Steve C. Orr, MCSD - 11 Sep 2003 06:09 GMT
You should be able to override the Render method of your page object and get
the final output from there.
Here's more info:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlr
fsystemwebuicontrolclassrendertopic.asp
Or you can use the WebRequest object to call your web page, then you can
capture the HTML that it output.
Here's a nice example:
http://www.digitalvideotoolbox.com/Modules/AspFaq/ShowQuestion.aspx?QID=88

Signature
I hope this helps,
Steve C. Orr, MCSD
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
> Hi all,
>
[quoted text clipped - 8 lines]
>
> Stewart