System.IO.StringWriter html = new System.IO.StringWriter();
 System.Web.UI.HtmlTextWriter tw = new System.Web.UI.HtmlTextWriter(html);
 Server.Execute("~/My.aspx", tw);
String strHTML = html.ToString();

相关文章: