Click here to Skip to main content
12,894,339 members (70,467 online)
Rate this:
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

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
Updated 20-Aug-12 1:46am
Christian Graus 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 20-Aug-12 7:42am
Why don't you use Asynchronous FileUpload control ?

1 solution

Rate this: bad
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[^]

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 20 Aug 2012
Copyright © CodeProject, 1999-2017
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