title: vb.net Open File - Chrome & IE
body: <p>I've been having a nightmare getting a method to open a file working, until I tested the process in Chrome and discovered it worked so it can only be an issue within IE. Unfortunately some of the users will surely be using IE so I still need to resolve the issue. Here's what I've got:</p>
  
  <pre><code>   Protected Sub OpenFile(filePath As String) 
  
      If dlCvFlName Is Nothing Or dlCvFlPath Is Nothing Then
          lblError.Text = 'The Candidate does not have a CV uploaded'
      Else
          Dim script As String = "window.open('" &amp; filePath &amp; "', 'Popup', '_newtab');"
          Page.ClientScript.RegisterStartupScript(Me.[GetType](), "open", script, True)
      End If
  End Sub
  
  OpenFile("www.domain.com/file/document.doc")
  </code></pre>
  
  <p>When I run this in chrome the file is successfully opened, however absolutely nothing happens in IE...</p>
  
  <p>Please help...?</p>