How to create aspx page on runtime and place literal control?
<p>I have an requirement where i have to display some content on iframe dynamically. Let me explain my scenario. I have a form where i have to display some html text. Earlier what i did is , i placed a literal on the form and fill it with HTML text. All worked fine but , the text alignments of the displayed html gets overriden by the page css.
So what i want now is that, instead of literal, i place an iframe. Now at page load event , i will generate a aspx dynamically and place a literal control and fill that literal control with the html text. And then will display that aspx page in the iframe.</p>

<p>So i would like to know the following things:</p>

<ul>
<li><p>Is this a good idea to hold heavy
text , more than 20K of chars in
memory, dynamically generate aspx
page at runtime.</p></li>
<li><p>If any workaround to not to inherit
the page css inside the    literal
displayed.</p></li>
<li><p>Any other approach better than my approach.</p></li>
<li>Way to implement my approach(iframe and dynamic aspx).</li>
</ul>

<p>--- <strong>I am using ASP.NET / C# 4.0</strong></p>

<p>Loads of questions...</p>

<p>Thanks in advance</p>
