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

Multiple file upload

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorial
5 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.
  • P Offline
    P Offline
    paper67
    wrote on last edited by
    #1

    Hi, I want to upload multiple image files from within an InsertItemTemplate within a FormView. That Formview is placed in an UpdatePanel. I searched the net for 2 days to find answers to my problem. I am aware that a full postback is required to make the asp.net FileUpload control work and that a PostBackTrigger has to be set inside the UpdatePanel. My problem is that the PostBackTrigger button that I place in the Triggers section of the UpdatePanel can not be found since it is declared in the InsertItemTemplate. Can this be solved some way. I have read that in this case it is better to use an AJAX AsyncFileUpload control, but I can not find any examples where multiple files can be uploaded. I doubt that this is the best way to solve my problem since the upload starts immediately after a file on the local file system is selected. I want to start the upload only when the Insert Button inside the InsertItemTemplate is clicked and therefore do the handling in the ItemInserting event of the FormView. Can anyone please point me to an example where this is done. I can not imagine I am the only one having this problem. tia

    C A 2 Replies Last reply
    0
    • P paper67

      Hi, I want to upload multiple image files from within an InsertItemTemplate within a FormView. That Formview is placed in an UpdatePanel. I searched the net for 2 days to find answers to my problem. I am aware that a full postback is required to make the asp.net FileUpload control work and that a PostBackTrigger has to be set inside the UpdatePanel. My problem is that the PostBackTrigger button that I place in the Triggers section of the UpdatePanel can not be found since it is declared in the InsertItemTemplate. Can this be solved some way. I have read that in this case it is better to use an AJAX AsyncFileUpload control, but I can not find any examples where multiple files can be uploaded. I doubt that this is the best way to solve my problem since the upload starts immediately after a file on the local file system is selected. I want to start the upload only when the Insert Button inside the InsertItemTemplate is clicked and therefore do the handling in the ItemInserting event of the FormView. Can anyone please point me to an example where this is done. I can not imagine I am the only one having this problem. tia

      C Offline
      C Offline
      chriswk
      wrote on last edited by
      #2

      I come from China, the English not very good, but I have an example, I use e-mail sent to you, this example can run, you can serve as a reference. Please tell me your email address.

      G P 2 Replies Last reply
      0
      • C chriswk

        I come from China, the English not very good, but I have an example, I use e-mail sent to you, this example can run, you can serve as a reference. Please tell me your email address.

        G Offline
        G Offline
        Gaurav Dudeja India
        wrote on last edited by
        #3

        may this article will help you Upload Multiple Files in ASP.NET using jQuery[^]

        1 Reply Last reply
        0
        • P paper67

          Hi, I want to upload multiple image files from within an InsertItemTemplate within a FormView. That Formview is placed in an UpdatePanel. I searched the net for 2 days to find answers to my problem. I am aware that a full postback is required to make the asp.net FileUpload control work and that a PostBackTrigger has to be set inside the UpdatePanel. My problem is that the PostBackTrigger button that I place in the Triggers section of the UpdatePanel can not be found since it is declared in the InsertItemTemplate. Can this be solved some way. I have read that in this case it is better to use an AJAX AsyncFileUpload control, but I can not find any examples where multiple files can be uploaded. I doubt that this is the best way to solve my problem since the upload starts immediately after a file on the local file system is selected. I want to start the upload only when the Insert Button inside the InsertItemTemplate is clicked and therefore do the handling in the ItemInserting event of the FormView. Can anyone please point me to an example where this is done. I can not imagine I am the only one having this problem. tia

          A Offline
          A Offline
          Anurag Gandhi
          wrote on last edited by
          #4

          People hardly have time to read your whole story. Please be precise what exactly you need. If you need multiple file upload control, follow the link: Multiple File Upload User Control[^]

          Anurag Gandhi.
          http://www.gandhisoft.com
          Life is a computer program and every one is the programmer of his own life.

          1 Reply Last reply
          0
          • C chriswk

            I come from China, the English not very good, but I have an example, I use e-mail sent to you, this example can run, you can serve as a reference. Please tell me your email address.

            P Offline
            P Offline
            paper67
            wrote on last edited by
            #5

            Email: paperke67@hotmail.com tia

            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