Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a file upload button, and a update panel just below it,
but my problem is whenever update panel is refresh my uploaded file in file upload is also refresh and file uploder is blank,
i put file uploder in any place at the page, but after this i face the same problem, that file blank every time, if update panel is refresh,
so plz help me,
Posted
Comments
VishwaKL 7-Dec-12 4:38am    
use trigger to fix it
Arun kumar Gauttam 7-Dec-12 4:47am    
how we use trigger in that case

1 solution

File Upload Control do not maintain state during postback. That is the default behaviour by design as far as I know. In order to maintain the state(the selected file) you have to make a workaround just like gmail does whaen you attach multiple files. Google the solution and you will have plenty of solutions. Or, when you are already using update panels, why not to make use of the asyncfileupload 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