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);
原文:http://www.cnblogs.com/handsomer/p/3678198.html