Answered by:
ASP.net Upload

Question
-
User-893857529 posted
I am trying to use the uploadfile control, but everytime I try to upload using the following lil bit of code I get false... I even tried to just get rid of the If statement and it still wont upload a file.. any ideas?
If fileupload.HasFile Then
...
End IfTuesday, October 6, 2009 11:46 AM
Answers
-
User-1171043462 posted
Yes FileUpload does not work with UpdatePanel
Try the ASP.Net new ASyncUploadControl
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, October 6, 2009 1:08 PM -
User-952121411 posted
Yes, if you are using the new AJAX Control toolkit (3.0.30930) (Download Here: http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33804) then the previously mentioned AsyncFileUpload control is avaliable, and a sample can be tested here:
AsyncFileUpload Demonstration:
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AsyncFileUpload/AsyncFileUpload.aspx
FileUpload in UpdatePanel:
...Now if for some reason you are on an older AJAX version and can not move up right now, or are still using the .NET Framework 2.0, then check out this blog for a solution until you can move up to the new control:
File Upload in UpdatePanel, ASP.NET AJAX:
http://geekswithblogs.net/ranganh/archive/2008/04/01/file-upload-in-updatepanel-asp.net-ajax.aspx
Hope this helps!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, October 9, 2009 10:22 AM
All replies
-
User289008742 posted
Are you using it inside update panel?
Tuesday, October 6, 2009 12:55 PM -
User-893857529 posted
I figured it out, stupid update panels wont allow the control to work, adding the trigger wont work and making the page multipart wont work either, i need to find some sort of ajax upload control
Tuesday, October 6, 2009 1:02 PM -
User-1171043462 posted
Yes FileUpload does not work with UpdatePanel
Try the ASP.Net new ASyncUploadControl
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, October 6, 2009 1:08 PM -
User-952121411 posted
Yes, if you are using the new AJAX Control toolkit (3.0.30930) (Download Here: http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33804) then the previously mentioned AsyncFileUpload control is avaliable, and a sample can be tested here:
AsyncFileUpload Demonstration:
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AsyncFileUpload/AsyncFileUpload.aspx
FileUpload in UpdatePanel:
...Now if for some reason you are on an older AJAX version and can not move up right now, or are still using the .NET Framework 2.0, then check out this blog for a solution until you can move up to the new control:
File Upload in UpdatePanel, ASP.NET AJAX:
http://geekswithblogs.net/ranganh/archive/2008/04/01/file-upload-in-updatepanel-asp.net-ajax.aspx
Hope this helps!
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, October 9, 2009 10:22 AM