context.Response.ContentType = "text/html";
string fullpath = context.Server.MapPath("hello.htm");
context.Response.Write(fullpath);
string content = System.IO.File.ReadAllText(fullpath);
context.Response.Write(content);
相关文章
- 如何在asp.net mvc中添加自定义的HTML辅助种方法
- Django 文件存储 默认存储系统 DefaultStorage FileSystemStorage
- javascript使用jQuery加载CSV文件+ajax关闭异步
- WPF -- 使用当前进程打开自定义文件的一种方式
- asp.net结合html使用
- HTML5 进阶系列:文件上传下载
- EF调用存储过程查询表中的部分字段,报数据读取器与指定的“AdventureWorksDWModel.Student”不兼容。某个类型为“Age”的成员在同名的数据读取器中没有对应的列。
- HTML5 文件处理之FileAPI简介整理
- IIS 中asp.net的一些配置
- [iOS]开发者证书和描述文件的作用