title: Response.write(script) is not working.
body: <p>I'm writing a program in ASP.NET with a VB backend. I am trying to get a popup window  to open using javascript prior to a subroutine running, and close it when the routine ends as a way to provide a progress indicator to the user, as some of these subroutine calls can take a few minutes.</p>
  
  <p>My code is below.</p>
  
  <pre><code>    Response.Write("&lt;script type='text/javascript'&gt;function openWin() {myWindow = window.open('Status.aspx?FileName=" &amp; gstrCurrentFile &amp; "&amp;FileNumber=" &amp; gCurrentItem &amp; "&amp;Total=" &amp; gTotal &amp; "', 'Status', 'width=200, height=100');};&lt;/script&gt;")
      RunOACW2()
      Response.Write("&lt;script type='text/javascript'&gt;function closeWin() {myWindow.close();}&lt;/script&gt;")
  </code></pre>
  
  <p>However, I never see a popup, but I am pretty sure the javascript is correct. What is going wrong?</p>