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

 

相关文章:

  • 2021-05-29
  • 2022-01-25
  • 2021-07-07
  • 2021-05-31
  • 2021-08-31
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-24
  • 2021-05-22
  • 2021-10-02
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案