Click here to Skip to main content
15,891,851 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using a fileUpload Control and ScriptManager with Updatepannel in a Asp.Net web page but when I click upload button The file does not upload though the page run successfully. but if I remove ScriptManager And Updatepanel the file uploaded successfully. How can I use ScriptManager and UpdatePanel With File Upload Control in a asp.net web page?
Posted

 
Share this answer
 
add the action events for updatepanel sync or async
 
Share this answer
 
Comments
Sandeep Mewara 13-May-12 4:37am    
File upload does not work with async trigger. It's known thing. Adding that as an action would not help.
It is a known thing that File Upload does not work async with Update Panel. You need to have a complete postback for it. So, either place your FileUpload outside UpdatePanel OR have a Postback Trigger defined for FileUpload control in Update Panel, example: Using FileUpload Control inside ASP.Net AJAX UpdatePanel Control[^]


In case you want upload to be async, Microsoft released a new control that can be used:
AjaxToolkit: AsyncFileUpload Demonstration[^]
AsyncFileUpload Control - New Control in Ajax Control ToolKit[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900