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);

原文地址:https://www.cnblogs.com/Tpf386/p/13732206.html