Prevent re-submitting web forms when you refresh your browser without losing your viewing state

Duplicate: How can I prevent the database from being re-written when the browser reboots / backwards?


Is there a beautiful elegant way to stop the .aspx page from re-submitting form data if the user requests an update from their browser?

Ideally, without losing the viewstate.

EDIT: The most elegant solution for me was wrapping the appropriate controls in the asp.net ajax UpdatePanel. That is all.

+4
source share
3 answers

, . , HTTP. , Ajax iframe.

+1

, . , ​​ .

UPDATE. "" . , - . , , . , , javascript, ..

- , . , , (, , ). , (, ).

+4

+1

Source: https://habr.com/ru/post/1721683/


All Articles