Detect web page refresh

/ Published in: C#
Save to your folder(s)

Overwrite LoadViewSate and SaveViewState page methods.
SaveViewState is called on initial page load and that is the place to save your negated flag to Session.
This value should be compared in LoadViewState and if the values are the same it means that the page is refreshed.

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.