Geeks With Blogs
Jeroen Bourdeaud'hui web application developer September 2011 Entries
How to prevent the user to post page twice, by using refresh
When a user post's data to the server, the page will be reloaded. When the user hits the F5/refresh button, a message appears, which tells us, that we´ve allready sended the data to the server. And asks us if we want to sent it again. If the user clicks "yes", we have to catch that, we don´t want this in our application - check that the user can only post something every 2 minutes. - save the posted data in viewstate and check if something changed - ... Or we can check if the user hit the refresh ......

Posted On Thursday, September 29, 2011 9:51 PM

Copyright © Jeroen Bourdeaud'hui | Powered by: