Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Duplicate data inserted while click refreh in asp.net Expand / Collapse
Author
Message
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


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:09 PM
Points: 40,172, Visits: 36,560
You might get better answers if you ask this in an asp.net forum. Maybe one of the microsoft forums? (http://social.msdn.microsoft.com/Forums/en-US/category/netdevelopment)


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
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


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 4:56 PM
Points: 31,168, Visits: 15,612
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