Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

1 Answer

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

share|improve this answer
thx, but it is possible to accopmlish that in the same page without redirection – Mahmoud Feb 3 '11 at 9: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 3 '11 at 9: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 3 '11 at 18:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.