Friday, November 23, 2012

FileUpload control is not working within update panel in

Hi All,

Today i face a problem with uploading a file using file upload control of Because it was in the update panel. It's giving blank in fupImage.FileName. But after searched on web i found a solution on Here. 

It says that paste this code in your page load part :-

Page.Form.Attributes.Add("enctype", "multipart/form-data");
But this was not worked for me :( Finally after so many searches i found a simple solution for this. That i want to share with you :-
Solution :

You just need to make the your button to upload the file as the trigger of the Upload panel Something like this : -


No comments:

Post a Comment