Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / September 2003

Tip: Looking for answers? Try searching our database.

Getting output of a control or page as text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stewart - 11 Sep 2003 03:47 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.