aspx 到 html 最简单方法
来源:互联网 发布:手机学生模式软件 编辑:程序博客网 时间:2024/05/22 05:31
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class AspxHtml : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
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("b.htm"), false, System.Text.Encoding.Default);
sw.Write(html.ToString());
sw.Close();
tw.Close();
Response.Write(html.ToString());
}
}
- aspx 到 html 最简单方法
- aspx生成HTML几个方法
- html文件制作最简单的方法
- 导出的最简单方法(text/html/word)
- PHP生成静态HTML页面最简单方法示例
- 将Ubuntu安装到硬盘的最简单方法
- gridview导入到excel最简单的方法
- .NET MVC1项目升级到MVC2最简单的方法
- 将Access数据库导入到SQLite最简单的方法!
- 将软件添加到右键菜单 最简单的方法
- 将软件添加到右键菜单 最简单的方法
- 最简单方法将项目上传到github
- 将软件添加到右键菜单 最简单的方法
- HTML页面提交到aspx页面的问题
- 如何将HTML或aspx页面嵌入到Silverlight中
- [黑马程序员]ashx+html简单模拟aspx的形成
- 将aspx网页以HTML形式存储的几个方法
- aspx网页以HTML形式存储的几个方法
- 修改资源类,轻松访问资源
- 有向图的拓扑排序
- SVN服务器的搭建
- Makefile的语法及写法(续)
- NET实用设计模式:观察者模式(Observer)
- aspx 到 html 最简单方法
- forms验证如此简单
- WebService大讲堂之Axis2(10):使用soapmonitor模块监视soap请求与响应消息
- 使用C#实现网站用户登录
- 异步IO框架实现之EPOLL
- JAVA字符串处理函数列表一览
- 我在网上看到的东西,借来用用
- 再论验证码安全:请及时销毁你的验证码
- 20070728测试