asp.net core razor加载模板文件路径

浪淘沙4个月前后端78
  var templateContent = "${include(\"" + App.HostEnvironment.ContentRootPath + "\\Pages\\Shared\\_top.cshtml\")}";
  var template = Engine.CreateTemplate(templateContent); 
  var result = template.Render();
  return Content(result);


相关文章

asp.net core postgresql 大数据高性能分页

 /// <summary> /// 分页:返回json格式,参数加密 /// </summary> /// <param nam...

asp.net core sqlsugar 复制插入并返回新id

var result = await _db.Ado.GetScalarAsync("insert into qy_gw(gwmc...

DBeaver连接oracle 下载驱动报错

https://blog.csdn.net/weixin_45764765/article/details/124327194...

asp.net core 取得页面form中所有表单值

public IActionResult OnPostSubmit()         { &n...

asp.net core 发送模板消息

 private readonly HttpClient _httpClient;  public testModel(HttpCli...

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。