asp.net中打开文件的方法Response.WriteFile();
2005-03-21 10:41
573 查看
<%@ Page Language="c#" %>
<html>
<head>
</head>
<body>
<h2>Response.WriteFile()
</h2>
<%;
string FileName;
//make sure the text file is in the correct place.
FileName = Request.PhysicalApplicationPath + "demo.asp";
Response.WriteFile(FileName);
%>
</body>
</html>
<html>
<head>
</head>
<body>
<h2>Response.WriteFile()
</h2>
<%;
string FileName;
//make sure the text file is in the correct place.
FileName = Request.PhysicalApplicationPath + "demo.asp";
Response.WriteFile(FileName);
%>
</body>
</html>
相关文章推荐
- ASP.NET 使用Response.WriteFile方法下载文件
- asp.net Response.Redirect跳出框架与打开窗口方法
- asp.net response.ContentType 下载文件的四种方法
- asp.net response.ContentType 下载文件的四种方法
- asp.net response.ContentType 下载文件的四种方法
- asp.net中打开Excel上传文件,读取数据的方法
- Asp.net文件下载(Response.WriteFile)时文件名的中文乱码
- ASP.NET导出Excel打开时提示:与文件扩展名指定文件不一致解决方法
- ASP.NET文件下载避免使用WriteFile方法
- sql server 关于表中只增标识问题 C# 实现自动化打开和关闭可执行文件(或 关闭停止与系统交互的可执行文件) ajaxfileupload插件上传图片功能,用MVC和aspx做后台各写了一个案例 将小写阿拉伯数字转换成大写的汉字, C# WinForm 中英文实现, 国际化实现的简单方法 ASP.NET Core 2 学习笔记(六)ASP.NET Core 2 学习笔记(三)
- asp.net response.ContentType 下载文件的四种方法
- 【转】彻底解决Asp.net文件下载(Response.WriteFile)时文件名的中文乱码和空格异常问题
- ASP.NET导出Excel打开时提示:与文件扩展名指定文件不一致解决方法
- 移动项目开发笔记(asp.net中Response.WriteFile()实现文件下载)
- asp.net response.ContentType 下载文件的四种方法
- ASP.NET使用Response.WriteFile(filename);实现 文件下载
- asp.net网站,打开网站,提示下载网页解决方法(未知文件类型、text/vnd.wap.wml)
- [转]asp.net response.ContentType 下载文件的四种方法
- asp.net response.ContentType 下载文件的四种方法
- asp.net response.ContentType 下载文件的四种方法