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. fileupload problem with ajax

fileupload problem with ajax

Scheduled Pinned Locked Moved ASP.NET
helpdatabasewpfcomquestion
3 Posts 2 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.
  • M Offline
    M Offline
    marky777
    wrote on last edited by
    #1

    Hi I am using an ajax update panel and within it there is a gridview control with item templates that have a fileupload control and a button that uploads the file chose. I know that AJAX has problems with regard to using fileupload's and this is the solution: http://www.codeproject.com/KB/ajax/simpleajaxupload.aspx[^] This (trigger) does not work as my button is within the gridview's template columns and I get a runtime error saying that cdmUpload can't be found. Is there any other way that I can reference the control so it can be found? Or any other method where I can use the fileupload control within the updatepanel so it actually works? Any help would be great. Thanks M

    L 1 Reply Last reply
    0
    • M marky777

      Hi I am using an ajax update panel and within it there is a gridview control with item templates that have a fileupload control and a button that uploads the file chose. I know that AJAX has problems with regard to using fileupload's and this is the solution: http://www.codeproject.com/KB/ajax/simpleajaxupload.aspx[^] This (trigger) does not work as my button is within the gridview's template columns and I get a runtime error saying that cdmUpload can't be found. Is there any other way that I can reference the control so it can be found? Or any other method where I can use the fileupload control within the updatepanel so it actually works? Any help would be great. Thanks M

      L Offline
      L Offline
      Laddie
      wrote on last edited by
      #2

      Ya you can do this. 1) Add a buton Say btnUpload Inside the update panel 2) In the button click event right the code to save the uploaded file in the server. 3) In the Updae panel trigger collection add a postback trigger for the btnUpload Conrol.

      Thanks Laddie Kindly rate if the answer was helpful

      M 1 Reply Last reply
      0
      • L Laddie

        Ya you can do this. 1) Add a buton Say btnUpload Inside the update panel 2) In the button click event right the code to save the uploaded file in the server. 3) In the Updae panel trigger collection add a postback trigger for the btnUpload Conrol.

        Thanks Laddie Kindly rate if the answer was helpful

        M Offline
        M Offline
        marky777
        wrote on last edited by
        #3

        Thanks for your help, but i tried this, and the button control cannot be found as it is within the gridview's item template. Is there no way to find the button other than: <Triggers> <asp:PostBackTrigger ControlID="TabContainer1" /> </Triggers>

        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