Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET Ajax
i am using fileupload control in updatepanel.I have added the fileupload button to trigger tag for full postback. i also added the button to
ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(UploadButton);
 
for getting full postback.
 
Now the issue is , the upload button does not work the first its clicked, from 2nd time click onwards the upload button works properly.
 

how to solve this above issue.
Posted 20-Aug-12 1:27am
Edited 20-Aug-12 1:46am
digimanus29.9K
v2
Comments
Christian Graus at 20-Aug-12 7:28am
   
You need to post some code so we can see what is going on. Also, have you used a breakpoint to see if your updatepanel is doing a postback, the first time ?
@amitgajjar at 20-Aug-12 7:42am
   
Why don't you use Asynchronous FileUpload control ?

1 solution

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

Solution 1

Try to avoid using FileUpload control inside UpdatePanel, as it involves post back problems with it. Use asynchronous file upload control instead. You can find a nice sample code here Asynchronous File Upload[^]
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.141015.1 | Last Updated 20 Aug 2012
Copyright © CodeProject, 1999-2014
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