//先得到模板页所在的路径
string phyPath = context.Server.MapPath("/p02style.html");
//得到模板的所有内容
string str = System.IO.File.ReadAllText(phyPath);

//读取母版页 替换占位符
//占位 需要被替换
str = str.Replace("${trs}", sb.ToString());

//返回给浏览器
context.Response.Write(str);

相关文章:

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