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

I wonder if anyone could help me. I have a web form where i can enter data into given fileds some of them are on autopost back. I also have two upload functions where i can be able to upload files onto the form.
But everytime i upload the files and do something autopostback seems to be removing the file completely.
Is there a way so that autopostback does not remove the uploaded file?

Here is my upload code:

CSS
<asp:FileUpload ID="FileUpload1" runat="server" Style="z-index: 117; left: 458px;
                position: absolute; top: 31px" />


Thanks in advance
Posted
Updated 19-May-11 4:10am
v5
Comments
[no name] 19-May-11 7:37am    
Can you post your code so that we can guide you where you went wrong.

1 solution

Hi,

Please do the following:

1. Add UpdatePanel in .aspx page
2. Place all the controls inside the UpdatePanel except FileUpload control


Thanks,
Imdadhusen
 
Share this answer
 
Comments
Geofferz 19-May-11 10:07am    
I tried that it didnt work mate kept removing the uploaded file

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