tags:

views:

537

answers:

1

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 lines of this:

<%= Html.RenderPartial(pathToMyHtmlFile) %>
+9  A: 

WriteFile from the Response object might do what you want:

<% Response.WriteFile(pathToMyHtmlFile); %>
Jon Benedicto
Works great. Thank you.
Robert Claypool