Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Duplicate data inserted while click refreh in Expand / Collapse
Posted Monday, December 6, 2010 2:14 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, July 9, 2012 1:43 AM
Points: 49, Visits: 198
hi all,Eventhough duplication protected through
while I am clicking refresh in IE it ask "you want to resubmit the data"
if I clik yes then it will insert the same data as it is in controls.
how can I solve this problem( but due to primary key it does not allow duplicate records.but I want to solve this from .net itself)
If i am redirect the page to same page after inset it will work correcltly other than this is there any solution?
Post #1030491
Posted Monday, December 6, 2010 2:21 AM



Group: General Forum Members
Last Login: Saturday, December 3, 2016 5:18 AM
Points: 45,619, Visits: 44,147
You might get better answers if you ask this in an forum. Maybe one of the microsoft forums? (

Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1030494
Posted Monday, December 6, 2010 8:10 AM



Group: Administrators
Last Login: Today @ 9:24 AM
Points: 34,366, Visits: 18,587
I agree with Gail, please submit this elsewhere. This is an ASP.NET issue, not a SQL Server issue. On SQL Server, you have protection if you have a PK that prevents duplicate inserts.

Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1030644
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse