ASP.NET School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a ASP.NET Expert!

Join 300,456 ASP.NET Programmers for FREE! Get instant access to thousands of ASP.NET experts, tutorials, code snippets, and more! There are 1,642 people online right now. Registration is fast and FREE... Join Now!




Get HTML of Current Page

 

Get HTML of Current Page

quakeworld2007

30 Jun, 2009 - 07:54 AM
Post #1

D.I.C Head
**

Joined: 28 Sep, 2007
Posts: 68



Thanked: 3 times
My Contributions
In code behind how do i get the html of the current page?

I have tried

CODE



'Dim htmlStringWriter As IO.StringWriter = New IO.StringWriter()
        'Server.Execute("wfCurrentPage.aspx", htmlStringWriter)
        'Dim htmlCodeToConvert As String = htmlStringWriter.GetStringBuilder().ToString()
        'htmlStringWriter.Close()
        'objPdf.HTMLFromString(PageResult)



but it causes an endless loop.

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/8/09 02:08AM

Live ASP.NET Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

ASP.NET Tutorials

Reference Sheets

ASP.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month