Duplicate data inserted while click refreh in asp.net

  • 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?

  • 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, 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
  • 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.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply