Click here to Skip to main content
15,884,041 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

i upload image using file upload control and save into sql D/b. when i refresh a page it insert same duplicate image into D/b. how many times i refresh that page it insert same image into D/b. how to resolve this problem. pls give some suggestion or solution.
Posted
Comments
Sergey Alexandrovich Kryukov 11-May-15 14:21pm    
Sorry, no relevant information, no advice.
—SA
ramyajaya 11-May-15 14:34pm    
May be u submit the form every time you refresh. So it happens like this . Do submit operations only on postback not on every load and refresh
ZurdoDev 11-May-15 14:50pm    
This is why most browsers will ask you if you want to re-submit the information again. You need to click No.
virusstorm 11-May-15 15:02pm    
It sounds like you are posting the same content to the server every single time you hit the refresh button. When you are done posting the content, redirect the user to another page, that will prevent the refresh issue.

1 solution

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