I am using asp.net 3.5 and want to render the contents of a static html file into an asp.net page that contains a master page in one of the contentplaceholders. I have considered using an iframe but would like to avoid that if possible. Alternatively, if it's simpler I would like to just read in some text in a file that's html like:
<table> <tr> <td> Hey dude <td> </tr> </table> <div> <span>I am special! </span> </div> and render that into that contentplaceholder in the page. I have thought about a literal control to do this but am not sure if that will work either. The problem I am trying to solve is that I want to be able to give a user access to an html page or text file and have them update it with content. Then at runtime render the html markup from this file. This is the only page in the application I need this functionality so something like a CMS system or html editor control is overkill. I just need to read a in a file and render the html markup in an asp.net page. Also I would like the markup that's rendered to use the css we already have but I think that's a gimme either way.