title: Open window with generated HTML content in ASP.NET?
body: <p>Is there any possible way of populating a popup window with dynamically created HTML?</p>
  
  <p>Right now, I have this:</p>
  
  <pre><code>HttpContext.Current.Response.Clear();
  HttpContext.Current.Response.Write(writer.ToString());
  HttpContext.Current.Response.Write("&lt;script&gt;window.print();&lt;/script&gt;");
  HttpContext.Current.Response.End();
  </code></pre>
  
  <p>But it is very unattractive to have the contents be displayed in the original window. I know that I could create a seperate file where I can assemble the query with querystrings and have that pop out, but is there any easier way of doing this?</p>
  
  <p>Many thanks</p>