Click here to Skip to main content
14,735,205 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys, I have popup window.When we can save the data in popup window. Data will be added in main page. But here problem is when click on the refresh button . Duplicate data can be added in main page. how to prevent that without adding duplicates in main page.
Could you help me anyone.


This problem is common for all beginner

Here you can found the solution Avoid inserting twice when user refresh page in ASP.NET[^]

Although code is in VB but you can convert it through VB to C# Convertor[^]

Hope this will help you,

-Amit Gajjar.
After adding the data in main page, there only, write the following coding:


CH Guravaiah 26-Jul-12 5:50am
thanks, After adding the above code. cleared all data in main page. tha above code added in main page.

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