The AsyncFileUpload already does it's thing asynchonously. There's no need to put it in an updatepanel.
Please put AsyncFileUpload outside of updatepanel. And you can use uploadcomplete event to saveas the file uploaded instead of button click event. For the other thing needs to do, you can define cliente completed event to use javascript to achieve it. For
example, you can use element.style.display='none' to hide the control instead of using Visible on server-side.
Chetan Sarode
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
irswa
0 Points
1 Post
UpdatePanel and AsyncFileUpload
May 30, 2012 09:09 AM|LINK
AsyncFileUpload dosn't fire in UpdatePanel normaly
to solve the problem :
1) add enctype="multipart/form-data" in your form tag
2) add postbacktrigger to the button that upload the file
into your updatePannel tag
<Triggers>
<asp:PostBackTrigger ControlID="Button1" />
</Triggers>
chetan.sarod...
All-Star
65729 Points
11138 Posts
Re: UpdatePanel and AsyncFileUpload
May 31, 2012 03:13 AM|LINK
The AsyncFileUpload already does it's thing asynchonously. There's no need to put it in an updatepanel.
Please put AsyncFileUpload outside of updatepanel. And you can use uploadcomplete event to saveas the file uploaded instead of button click event. For the other thing needs to do, you can define cliente completed event to use javascript to achieve it. For example, you can use element.style.display='none' to hide the control instead of using Visible on server-side.
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.