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