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. Advertising

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:
    612
    brian lanning
    Jul 29, 2003
  2. Per Magnus L?vold
    Replies:
    1
    Views:
    5,171
    John C. Bollinger
    Oct 8, 2004
  3. phil
    Replies:
    2
    Views:
    1,147
    Shahzad Godil
    Nov 14, 2006
  4. Pkenty
    Replies:
    0
    Views:
    414
    Pkenty
    May 28, 2004
  5. Jawahar Rajan
    Replies:
    1
    Views:
    303
    Adrienne
    Oct 1, 2003
Loading...

Share This Page