Gridview on refresh

Discussion in 'ASP .Net' started by =?Utf-8?B?TWF0dA==?=, Jan 12, 2006.

  1. I have a gridview that allows users to edit records. In reality, I've
    changed the SQL so the edit is actually doing an insert to a date driven
    table. Works great. Unfortunately it works too good. The user performs the
    update and the gridview posts back. However, If the user hits their browser
    refresh button here, the "update" (actually an insert) happens again and now
    I have duplicate rows in my db! How can I prevent this from happening
    (previous gridview action on a browser refresh) without loading a different
    page?

    Thanks! -Matt
     
    =?Utf-8?B?TWF0dA==?=, Jan 12, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. brian lanning
    Replies:
    0
    Views:
    846
    brian lanning
    Jul 29, 2003
  2. Shafia
    Replies:
    1
    Views:
    502
    Brock Allen
    Apr 15, 2005
  3. Vincent Ye

    How to refresh the content in GridView

    Vincent Ye, Feb 7, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    21,914
    Vincent Ye
    Feb 7, 2006
  4. Per Magnus L?vold
    Replies:
    1
    Views:
    5,703
    John C. Bollinger
    Oct 8, 2004
  5. =?Utf-8?B?bWdvbnphbGVzMw==?=

    GridView Hierarchical View - Gridview in Gridview

    =?Utf-8?B?bWdvbnphbGVzMw==?=, May 9, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    18,296
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    May 9, 2006
  6. phil
    Replies:
    2
    Views:
    1,369
    Shahzad Godil
    Nov 14, 2006
  7. Pkenty
    Replies:
    0
    Views:
    616
    Pkenty
    May 28, 2004
  8. Jawahar Rajan
    Replies:
    1
    Views:
    446
    Adrienne
    Oct 1, 2003
Loading...