title: ASP.Net VB call JavaScript function from Code Behind
body: <p>I have a function that is responsible for populating an SSRS report.  The user presses a button and I go out and check to see if there is data.  If no data, I provide a NO DATA message.  If there is data I call the SSRS report which I would like to open in a new window.  I thought using a JavaScript function would be the best way to accomplish this.  How is this done or what would you recommend?  Thanks in advance!</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
          function openWindow(url) {
              document.forms[0].target = "_blank";
          }
      &lt;/script&gt;
  </code></pre>