Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
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 12-May-12 23:14pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

add the action events for updatepanel sync or async
  Permalink  
Comments
Sandeep Mewara at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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[^]
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 210
1 CHill60 210
2 Peter Leow 180
3 Zoltán Zörgő 175
4 Richard Deeming 166
0 Sergey Alexandrovich Kryukov 9,278
1 OriginalGriff 6,806
2 Peter Leow 4,432
3 Zoltán Zörgő 3,944
4 Richard MacCutchan 2,782


Advertise | Privacy | Mobile
Web03 | 2.8.150129.1 | Last Updated 13 May 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100