asp.net读取模板文件

demo

 string AppDomainAppPath = HttpRuntime.AppDomainAppPath;

            Response.Write(AppDomainAppPath);
            Response.Write("<br/>");

            string path = System.IO.Path.Combine(AppDomainAppPath + "\\File\\MyTemplate.html");

            Response.Write(path);
            Response.Write("<br/>");

            string text = File.ReadAllText(path);

            Response.Write(text);

 

asp.net读取模板文件

上一篇:06_php_文件读操作


下一篇:HTTP 连接池