在asp.net中写入,要求用c#语言,有会的帮帮我好吗
解决方案 »
- 如何把repeater 控件中的一条记录传值到另一个页面
- Girdview分页问题?急!~
- ddlStatus”有一个无效 SelectedValue,因为它不在项目列表中。
- 高分求助“添加引用”的问题?
- 内存溢出 select pointID from points where pointTextCopy like '%ab%'
- |M| 我有N个js文件,我如何把他们导入到一个js文件中 呢
- ASCII加密到底是怎么回事?
- Session viewstate 全局变量区别
- 一个关于.net环境的问题
- 拜托!我只是想运行个简单的数据邦定例子:(
- 小问题 控件注释 马上结贴
- 验证控件与母版的冲突。。。。。。。。。。
能否给个例子??
{
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.Charset = "utf-8";
string Filename = Typename + ".xls";
HttpContext.Current.Response.AppendHeader("Content-Disposition", "online;filename=" + Filename);
HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8");
HttpContext.Current.Response.ContentType = "application/ms-excel";
//this.EnableViewState = false;
HttpContext.Current.Response.Write(TempHtml);
HttpContext.Current.Response.End();
}Typename为导出的文件名,TempHtml为HTML字符串