Open .pdf in new window

Discussion in 'ASP .Net' started by Kim, Nov 18, 2003.

  1. Kim

    Kim Guest

    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
    Kim, Nov 18, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Daniel Geisenhoff
    Replies:
    1
    Views:
    6,192
    Steven Cheng[MSFT]
    Apr 16, 2004
  2. Replies:
    1
    Views:
    5,419
    Norman Yuan
    Jan 10, 2006
  3. Gordon
    Replies:
    3
    Views:
    286
    Steven Burn
    Apr 16, 2004
  4. PC HUA
    Replies:
    2
    Views:
    390
    PC HUA
    May 19, 2004
  5. Replies:
    1
    Views:
    223
Loading...

Share This Page