ASPX被发布到客户端浏览器不就是HTML了吗?
解决方案 »
- VS2010自带登录权限的问题
- 求一正则
- 类似 京东的产品筛选 功能那个 高手做过啊 ,。帮忙谢谢 。
- 离奇的虚线样式border-bottomborder-left无效
- 用CSS写的MENU条,放在模板页中显示总是上下空出来不能的邻层紧密相邻。另外下拉时也不能复盖ContentPlaceHolder里面的东西
- 谁能帮我解释一段代码,说者有分
- asp.net中dbhelp类中的sqlconnection不能初始化
- 见者有分[急~~~]:DataGrid取值问题,各位高手们。
- MVC3 在过滤器中使用cookie为何无法存入请求中
- 关于treeview的问题。。
- VS.Net中有命令将所有如<asp:button></asp:button>转化为<asp:button/>吗?
- 简单问题,全部初级.
or override Render method to save the output, for example (make sure to give ASPNET account write permissions in the current directory)
protected override void Render(HtmlTextWriter output)
{
StringWriter sw;
HtmlTextWriter htmltw;
sw = new StringWriter();
htmltw = new HtmlTextWriter(sw);
base.Render(htmltw); String sTemp = sw.ToString(); StreamWriter writer = File.CreateText(Server.MapPath("somehtml.html"));
writer.Write(sTemp);
writer.Close(); //write it out to the browser
output.Write(sTemp);
}
http://aspnet.4guysfromrolla.com/articles/091102-1.aspx