Click here to Skip to main content
15,885,998 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i developed asp.net web application. The problem is that when i insert record and click refresh button on browser that time record is Re-Inserted..same with update.
Posted
Updated 1-Dec-13 19:34pm
v2
Comments
Sebastian T Xavier 2-Dec-13 1:41am    
question?

1 solution

This is common behavior of how ASP.NET works. When you hit refresh on browser,the last action will be repeated. In your case inserting records.

To understand and overcome this issue see these :

Detecting Refresh or Postback in ASP.NET[^]

Prevent button_click event in page refresh in c#[^]

Detect Browser Refresh Avoid Events Fire In ASP.NET[^]
 
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