Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I am working in vs2008.

My fileupload control was working fine until it was not inside updatepanel(ajax).

After adding updatepanel in form, File upload value is lost on button click.

Kindly reply if someone has an idea of actually what is happening and how it can be resolved?

Thanks
Posted

1 solution

Sushma_Patel wrote:
My fileupload control was working fine until it was not inside updatepanel(ajax).


If you are unaware, FileUpload control does not work in Async mode in Update panel.

3 options:
1. Put existing FileUpload control outside Update Panel
2. Put a Postback trigger on the button for file upload control. Such that when you use fileupload control then the update panel does not use partial update. It's a full postback.
3. Use new Ajax toolkit's Asyn FileUpload control.
 
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