Click here to Skip to main content
13,085,613 members (73,035 online)
Click here to Skip to main content
Articles » Web Development » ASP.NET » General » Alternatives
Alternatives (2)
Add your own
alternative version


40 bookmarked
Posted 25 Jan 2012

How to prevent Re-Post action caused by pressing browser's Refresh button

, 5 Feb 2012
Simple Web User Control prevents unexpected action caused by Refresh Button


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

10 Feb 2012
I did something similar with a PageToken class, but I put it in the Master Page so that I could implement it on any page that uses the Master Page. In our code we wrapped the session variables in their own class called Session variables.We needed a little more functionality for complex pages...
7 Feb 2012
Member 4236865
Could you not achieve the same thing with javascript?if (document.all){ document.onkeydown = function () { var key_f5 = 116; if (key_f5==event.keyCode){ event.keyCode=0; alert ("Sorry! You can not refresh this page!"); ...


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Udi Perets
Team Leader
Israel Israel
No Biography provided

| | Privacy | Terms of Use | Mobile
Web01 | 2.8.170813.1 | Last Updated 5 Feb 2012
Article Copyright 2012 by Udi Perets
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid