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

 

posted on 2020-09-25 20:01  荆棘人  阅读(202)  评论(0编辑  收藏  举报

导航