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 :)
Response.ClearContent();
StringWriter str = new StringWriter();
HtmlTextWriter htmlSTRINGWriter = new HtmlTextWriter(str);
this.RenderControl(htmlSTRINGWriter);
String myHtml = str.ToString();