Geeks With Blogs
Fórmulas e Cenas Object Reference Not Set to an Instance of an Object
Today I will post some sample code to get the html thar is generated from an aspx. It's quite usefull to create emails, pdfs and so on.

Enjoy :)

StringWriter str = new StringWriter();

HtmlTextWriter htmlSTRINGWriter = new HtmlTextWriter(str);

String myHtml = str.ToString();
Posted on Friday, April 17, 2009 5:47 PM Asp.Net , C# | Back to top

Comments on this post: Get ASPX rendered HTML

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Sglima | Powered by: