Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Open PDF files

Open PDF files

Scheduled Pinned Locked Moved ASP.NET
helpquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Biju Sam
    wrote on last edited by
    #1

    Hi All, Can we open a file in a loacation outside the PhysicalApplicationPath. And set the path to a hyperlinks NavigateUrl property? Please Help Biju Sam

    S S 2 Replies Last reply
    0
    • B Biju Sam

      Hi All, Can we open a file in a loacation outside the PhysicalApplicationPath. And set the path to a hyperlinks NavigateUrl property? Please Help Biju Sam

      S Offline
      S Offline
      sathesh pandian
      wrote on last edited by
      #2

      Dear biju, its not possible in web applications. you have to store/upload the files in some locations and you can navigate the links. otherwise it may show some security errors when you are implementing this in client side. all the best.

      Sathesh Pandian

      1 Reply Last reply
      0
      • B Biju Sam

        Hi All, Can we open a file in a loacation outside the PhysicalApplicationPath. And set the path to a hyperlinks NavigateUrl property? Please Help Biju Sam

        S Offline
        S Offline
        Sathesh Sakthivel
        wrote on last edited by
        #3

        You have to store the PDF files in the Database and try to Fetch it.

        Regards, Satips.:rose:

        B 1 Reply Last reply
        0
        • S Sathesh Sakthivel

          You have to store the PDF files in the Database and try to Fetch it.

          Regards, Satips.:rose:

          B Offline
          B Offline
          Biju Sam
          wrote on last edited by
          #4

          If i put the path like C;/........ it will not open it. Biju S

          S K 2 Replies Last reply
          0
          • B Biju Sam

            If i put the path like C;/........ it will not open it. Biju S

            S Offline
            S Offline
            sathesh pandian
            wrote on last edited by
            #5

            dear biju, Are you using C# ? In C# you have use C:\\folder\\file In vb.net you can easily mention like this C:\folder\file

            All The Best Sathesh Pandian

            1 Reply Last reply
            0
            • B Biju Sam

              If i put the path like C;/........ it will not open it. Biju S

              K Offline
              K Offline
              Kasson
              wrote on last edited by
              #6

              You can Use it to get the data from Drive C. Use the path C:\\folder\\file in your code and try to fetch the data.

              With Regards, Sakthi

              B 1 Reply Last reply
              0
              • K Kasson

                You can Use it to get the data from Drive C. Use the path C:\\folder\\file in your code and try to fetch the data.

                With Regards, Sakthi

                B Offline
                B Offline
                Biju Sam
                wrote on last edited by
                #7

                I'm using the correct syntaxes. for the path. but the hyperlink will not open the file unless you give ~\\folder\\file i need to emiminate this. Biju S

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups