关于生成静态页面 我已经制作了一个index.aspx页面 我希望能生成一个index.html页面不知道asp.net在这方面有没有 好办法。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不就是把index.aspx生成的内容输出到index.html文件里嘛。 http://www.baidu.com/s?ie=gb2312&bs=site%3Awww.svnhost.cn&sr=&z=&cl=3&f=8&wd=site%3Awww.svnhost.cn++%BE%B2%CC%AC&ct=0 //protected override void Render(HtmlTextWriter writer) //{ // System.IO.StringWriter html = new StringWriter(); // System.Web.UI.HtmlTextWriter tw = new HtmlTextWriter(html); // base.Render(tw); // System.IO.StreamWriter sw = new System.IO.StreamWriter(Server.MapPath("default.html"), false, System.Text.Encoding.UTF8); // sw.Write(html.ToString()); // sw.Close(); // tw.Close(); // Response.Write("<script>alert('已经生成静态页面default.html')</script>"); //}--------------------很好用的, 加急!关于StringBuilder拼接的问题! Reflector中看到的代码怎么还原???????? 请问微软企业库安装后怎么操作,哪里有微软企业库学习资料 关于nhibernate的查询 datagrid行转列 求:用c++关于扫描(Twain)的activex控件,用于b/s结构 莫名其妙的 ,SQL服务器启动不了,是什么原因的啊??急啊!!!!!!!!!!!!!!!!!!!! 这样的程序,运行一段时间后,会获取不到URL中的id的值,在线等 注销后怎样防止点后退按钮又回到注销前的页面? SqlHelper类 如何封装数据库的连接 字符串转换成ascii
//{
// System.IO.StringWriter html = new StringWriter(); // System.Web.UI.HtmlTextWriter tw = new HtmlTextWriter(html);
// base.Render(tw); // System.IO.StreamWriter sw = new System.IO.StreamWriter(Server.MapPath("default.html"), false, System.Text.Encoding.UTF8); // sw.Write(html.ToString());
// sw.Close();
// tw.Close();
// Response.Write("<script>alert('已经生成静态页面default.html')</script>");
//}--------------------
很好用的,