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. file upload control

file upload control

Scheduled Pinned Locked Moved ASP.NET
3 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.
  • G Offline
    G Offline
    gaurav mangal
    wrote on last edited by
    #1

    actually i have two file upload control at first page . and i want to upload two image. at one button click .for this i have write a coda: string filepath = "C:\\Uploads"; HttpFileCollection uploadedFiles = Request.Files; for (int i = 0; i < uploadedFiles.Count; i++) { HttpPostedFile userPostedFile = uploadedFiles[i]; userPostedFile.SaveAs(filepath + "\\" + System.IO.Path.GetFileName(userPostedFile.FileName)); } but now i want to retrive the images at page third .so tell me . what should i do. thanks in advance . gaurav

    _ F 2 Replies Last reply
    0
    • G gaurav mangal

      actually i have two file upload control at first page . and i want to upload two image. at one button click .for this i have write a coda: string filepath = "C:\\Uploads"; HttpFileCollection uploadedFiles = Request.Files; for (int i = 0; i < uploadedFiles.Count; i++) { HttpPostedFile userPostedFile = uploadedFiles[i]; userPostedFile.SaveAs(filepath + "\\" + System.IO.Path.GetFileName(userPostedFile.FileName)); } but now i want to retrive the images at page third .so tell me . what should i do. thanks in advance . gaurav

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      Get it from the place where you have saved it physically.

      Apurva Kaushal

      1 Reply Last reply
      0
      • G gaurav mangal

        actually i have two file upload control at first page . and i want to upload two image. at one button click .for this i have write a coda: string filepath = "C:\\Uploads"; HttpFileCollection uploadedFiles = Request.Files; for (int i = 0; i < uploadedFiles.Count; i++) { HttpPostedFile userPostedFile = uploadedFiles[i]; userPostedFile.SaveAs(filepath + "\\" + System.IO.Path.GetFileName(userPostedFile.FileName)); } but now i want to retrive the images at page third .so tell me . what should i do. thanks in advance . gaurav

        F Offline
        F Offline
        firozu
        wrote on last edited by
        #3

        If you want to display the image on a web page, put HTML 'Image' object on web page and make this a server control. Then assign Image.Src = 'image path'. You'll see the image on the page. Hope this helps.

        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