Posted: 2/26/2009
Hello!!
When i am uploading a file by file upload control it gives always hashfile false.
my file upload control and upload button enclosed in update panel.
when i remove update panel it works correctly.
Hi Vinay!
use the following link
http://codeasp.net/blogs/vijjendra/microsoft.net/76/fileupload-inside-the-ajax-updatepanel
Posted: 11/11/2009
Hi,
The FileUpload control is designed to be used only in postback scenarios and not in asynchronous postback scenarios during partial-page rendering. When you use a FileUpload control inside an UpdatePanel control, the file must be uploaded by using a control that is a PostBackTrigger object for the panel. Despite of this there are several solutions that implement ajax update panel.
http://en.fileuploadajax.subgurim.net/
http://aspalliance.com/1442_Building_AJAX_Enabled_File_Uploading_System_with_Progress_Bar_Using_ASPNET_20
http://www.codeproject.com/KB/aspnet/AJAXUpload.aspx
Good luck
Posted: 5/18/2010
Another suggesstion would be
Add the FileUpload1 to Session like
Session["myFileUpload"] = FileUpload1
then get it back in any page you want to:
FileUpload flUp = Session["myFileUpload"] as FileUpload