0

I'm working on SharePoint 2010 (using a visual web part). Is there any way to prevent duplicate inserts in a list when a page is refreshed using F5, without using session?

Alex Angas
  • 5,961
  • 9
  • 49
  • 89
Mahmoud
  • 185
  • 1
  • 3
  • 11

1 Answers1

1

The traditional PAR routine (POST And Redirect) works to get rid of these problems.

  • thx, but it is possible to accopmlish that in the same page without redirection – Mahmoud Feb 03 '11 at 09:18
  • 2
    I'm pretty sure you could post and redirect back to the same page. The redirect will be treated as a new request, not a postback. – Andy Burns Feb 03 '11 at 09:29
  • @Andy i want to keep some value soo i can show message for users like (email sent or not sent ...) how can i do this whene refreshing the same page. – Mahmoud Feb 03 '11 at 18:14