Hi,
I'm using ASP.Net and trying to display a popup window using Page.RegisterStartupScript. I'm trying to pass the fully qualified path to the file that I want to open; however, I get an error when I try to do so: Cannot find 'file:///c:inetpubwwwrootsdimv2-1ReportsReportViewer.aspx... Make sure the path or Internet address is correct.
Here's my code:All of the slashes are in the wrong place.VB Code:
Page.RegisterStartupScript("AssetsAssignedToUser", "<script>" & "window.open('" & Server.MapPath(Request.ApplicationPath) & "\Reports\ReportViewer.aspx','test','WIDTH=925,HEIGHT=600,TOP=10,LEFT=30,menubar,toolbar,scrollbars,resizable');" & "</script>")What am I doing wrong?
Thanks!




What am I doing wrong?
Reply With Quote