You can get the HTML for a control using this code:
Dim SB as New StringBuilder()
Dim SW as New StringWriter(SB)
Dim htmlTW as New HtmlTextWriter(SW)
MyControl.RenderControl(htmlTW)
Dim MyHTML as String = SB.ToString()
You can get the HTML for an external web page with the WebRequest method:
http://msdn.microsoft.com/library/de...classtopic.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Paul W" <qq*@qqq.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hi - I want to be able to capture the html generated by one of my pages.
Is there any way to do this from within the application, or must I use
some form of 'screen-scraping'. If screen-scraping, can someone point me
in the right direction and indicate how I get past the login screen,
etc.(uses forms authentication)? Thanks,
Paul.