ASP.NET MVC: RenderPartial for a static HTML file

后端 未结 1 701
忘了有多久
忘了有多久 2020-12-06 02:14

I\'m sure this is an easy one for most of you ... What is the best way to inject static HTML (from a html file on disc) into a View?

I want something along the lin

相关标签:
1条回答
  • 2020-12-06 02:43

    WriteFile from the Response object might do what you want:

    <% Response.WriteFile(pathToMyHtmlFile); %>
    
    0 讨论(0)
提交回复
热议问题