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
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to retrieve uploaded file

How to retrieve uploaded file

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nettutorial
9 Posts 3 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.
  • I Offline
    I Offline
    isaii
    wrote on last edited by
    #1

    Hi, I know already how to upload file in asp.net. Kindly teach me now, how I am going to view/retrieve file that I have uploaded. Need your expertise. Thanks in advance.

    P J 2 Replies Last reply
    0
    • I isaii

      Hi, I know already how to upload file in asp.net. Kindly teach me now, how I am going to view/retrieve file that I have uploaded. Need your expertise. Thanks in advance.

      P Offline
      P Offline
      Pavan Naidu
      wrote on last edited by
      #2

      Hi, If you want to retrive the uploaded file.... use anchor tag and place the file path in the href attribute of the achor tag. My File Regards, Pavan. -- modified at 4:37 Monday 20th November, 2006

      1 Reply Last reply
      0
      • I isaii

        Hi, I know already how to upload file in asp.net. Kindly teach me now, how I am going to view/retrieve file that I have uploaded. Need your expertise. Thanks in advance.

        J Offline
        J Offline
        just3ala2
        wrote on last edited by
        #3

        That depends on the type of the file, for example if u uploaded an image and u wantto display it u add an image tag to your webform and fill the ImageUrl property with the path of the image u saved on ur web server and so on

        Best Regards 3ala2 :)

        I 1 Reply Last reply
        0
        • J just3ala2

          That depends on the type of the file, for example if u uploaded an image and u wantto display it u add an image tag to your webform and fill the ImageUrl property with the path of the image u saved on ur web server and so on

          Best Regards 3ala2 :)

          I Offline
          I Offline
          isaii
          wrote on last edited by
          #4

          My file types are usually doc or excel files. How I will handle it? Thanks

          J 1 Reply Last reply
          0
          • I isaii

            My file types are usually doc or excel files. How I will handle it? Thanks

            J Offline
            J Offline
            just3ala2
            wrote on last edited by
            #5

            what do u want to do with them? download them?

            Best Regards 3ala2 :)

            I 1 Reply Last reply
            0
            • J just3ala2

              what do u want to do with them? download them?

              Best Regards 3ala2 :)

              I Offline
              I Offline
              isaii
              wrote on last edited by
              #6

              There is an option to download or for viewing. Thanks in advance.

              J 1 Reply Last reply
              0
              • I isaii

                There is an option to download or for viewing. Thanks in advance.

                J Offline
                J Offline
                just3ala2
                wrote on last edited by
                #7

                where did u save the path of the uploaded folder?

                Best Regards 3ala2 :)

                I 1 Reply Last reply
                0
                • J just3ala2

                  where did u save the path of the uploaded folder?

                  Best Regards 3ala2 :)

                  I Offline
                  I Offline
                  isaii
                  wrote on last edited by
                  #8

                  Hi.. I save the uploaded files at C:\Inetpub\wwwroot\Test\Data

                  J 1 Reply Last reply
                  0
                  • I isaii

                    Hi.. I save the uploaded files at C:\Inetpub\wwwroot\Test\Data

                    J Offline
                    J Offline
                    just3ala2
                    wrote on last edited by
                    #9

                    i c google something about server.mappath u can create a hyperlink and make the href property as the "virtual path" for ur file this way it will prompt downloading when u click on it

                    Best Regards 3ala2 :)

                    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