日期:2014-05-18 浏览次数:20479 次
protected override void Render( HtmlTextWriter writer ) { System.IO.StringWriter html = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter tw = new System.Web.UI.HtmlTextWriter(html); base.Render(tw); System.IO.StreamWriter sw; sw = new System.IO.StreamWriter(Server.MapPath("a.htm"), false, System.Text.Encoding.Default); sw.Write(html.ToString()); sw.Close(); tw.Close(); Response.Write(html.ToString()); }
------解决方案--------------------
如果有成功demo的话发一下给我参考一下,谢谢! hubeiliuyaping@sina.com