您的位置:首页 > 编程语言 > ASP

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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐