How do you generate a preview of html code in other window fetched from a table
<p>I have a page which generates a html code in a text box.  </p>

<p>When code generation happens parallel I am inserting the same code in a table.    </p>

<p>All this is in between asp controllers.</p>

<p>Under that text box I have button called preview.  </p>

<p>All I need is when I click on the button it should fetch the code and preview it like html file in other window.  </p>

<p>If saving that code in not a good idea than help to give another alternate. </p>

<p>All I need is preview of that code in html format in other window.</p>
