Hi I am having a file upload in user control in UpdatePanel
Now I tried to find the control in the my aspx page and added the trigger dynamically but still I face the same problem and my Fileupload.hasfile returns false always.
Any Ideas
If some one has the same problem My solution was:
Actually the fileUpload control works with the update panel if you register a post back trigger. The the problem I had was solved.
The actual solution was a very triky,
You need to change the form enctype to “multipart/form-data”. If you dont do this, the fileUpload control doesnt work in the update panel.
By just adding that attribute to my form in master page my problem is solved. Just check this out: http://knowledgebaseworld.blogspot.com/2009/02/file-upload-not-working-with-update.html
Thanks
Actually the fileUpload control works with the update panel if you register a post back trigger. The the problem I had was solved.
The actual solution was a very triky,
You need to change the form enctype to “multipart/form-data”.
If you dont do this, the fileUpload control doesnt work in the update panel.
By just adding that attribute to my form in master page my problem is solved.
Just check this out:
http://knowledgebaseworld.blogspot.com/2009/02/file-upload-not-working-with-update.html