<%@ 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>
asp.net中打开文件的方法Response.WriteFile();
最新推荐文章于 2024-07-05 15:53:15 发布