Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Open .pdf in new window

Reply
Thread Tools

Open .pdf in new window

 
 
Kim
Guest
Posts: n/a
 
      11-18-2003
Im having problems with opening a .pdf from a .net
webform. The .pdf resides on the server Ive tried using
this following code it opens a second window but the
address is incorrect. for example
location="\\church2k1\Project Manager\Report.pdf"
Dim writepdf As String = "window.open('& loctation & ');"
Response.Write("<script language=javascript>")
Response.Write(writepdf)
Response.Write("</script>")

when the form opens the address is saying:
http://localhost/....
of course this isn't right can someone please help me. Im
using VB.NET.. Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Window.Open get new tab instead of new window in FireFox Fredzidd@gmail.com Javascript 1 02-29-2008 03:06 AM
window.open() doesn't open new Window in Opera PC HUA Javascript 2 05-19-2004 02:29 AM
Need to open a new browser window, not a new window Gordon ASP General 3 04-16-2004 10:46 PM
Re: open window a new window and retrieve data from it. C# Cheryl ASP .Net 2 11-13-2003 11:07 AM
open window a new window and retrieve data from it. C# Cheryl ASP .Net 2 11-12-2003 05:30 AM



Advertisments