获得本页面的html方法
重写 Render方法
protected override void Render(HtmlTextWriter writer)
{
TextWriter tr = new StringWriter();
HtmlTextWriter htmlTr = new HtmlTextWriter(tr);
base.Render(htmlTr);
string html = tr.ToString();// the html is the page's generate Html words
writer.Write(html );
}
转载于:https://www.cnblogs.com/panbo/archive/2009/08/03/1537897.html