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. Dynamic file input

Dynamic file input

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • S Offline
    S Offline
    sroberts82
    wrote on last edited by
    #1

    Hi, I have a page which may have to upload any number of files, call the number x. The way I am doing it is I have an asp:table on the aspx page and I cycle through a for loop (0 to x), each time adding a row and cell which contains an asp:htmlinputfile control. Each time I give it an id of file1, file2, file3 etc. My question is, how do I refer to these controls when I submit the form. I know what x is, but what is the synatx for returning each of the files, or am I going about this the wrong way? Thank you in advance, Stephen

    I D 2 Replies Last reply
    0
    • S sroberts82

      Hi, I have a page which may have to upload any number of files, call the number x. The way I am doing it is I have an asp:table on the aspx page and I cycle through a for loop (0 to x), each time adding a row and cell which contains an asp:htmlinputfile control. Each time I give it an id of file1, file2, file3 etc. My question is, how do I refer to these controls when I submit the form. I know what x is, but what is the synatx for returning each of the files, or am I going about this the wrong way? Thank you in advance, Stephen

      I Offline
      I Offline
      Ista
      wrote on last edited by
      #2

      Even thoguh I dont really comprehend what your doind. Why not add it to a list box. Nick 1 line of code equals many bugs. So don't write any!!

      1 Reply Last reply
      0
      • S sroberts82

        Hi, I have a page which may have to upload any number of files, call the number x. The way I am doing it is I have an asp:table on the aspx page and I cycle through a for loop (0 to x), each time adding a row and cell which contains an asp:htmlinputfile control. Each time I give it an id of file1, file2, file3 etc. My question is, how do I refer to these controls when I submit the form. I know what x is, but what is the synatx for returning each of the files, or am I going about this the wrong way? Thank you in advance, Stephen

        D Offline
        D Offline
        Daniel Santillanes
        wrote on last edited by
        #3

        Hi roberts, May be you are looking for this information?[^] daniero

        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