How to prevent browser from displaying previous alert and resend information?

Asked

Viewed 557 times

0

Work in a WEB application . aspx that saves data in the database. The problem is that after recording this data and displaying a successful information to the user, if I do a Reload on the page the browser will send the information again to the server that will write in the database. How can I avoid that?

reenviar informações anteriores

  • @Paulohdsousa, thank you for your attention but that doesn’t solve my problem. I will try to be clearer, the message above appears when I press F5 on the keyboard after SUBMIT to the SERVER through the protected void Salvar_click(Object Sender, Eventargs and){//commands }, that is, this event is triggered the first time when I click on it, and the second time when I press F5 and then the REPEAT button of the above message, if I click CANCEL happens what I want, that is, the screen is displayed without sending the data again to the server.

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.