Button click handler executes when a web form pages is refreshed

ErikaIsabel

New Member
In a VB.Net code-behind file we have a few button-click handlers.I noticed that if the user clicks a button a button handler will execute. We noticed something unexpected. If the user clicks the Refresh button on the browser the same button handler that previously executed will execute again even though the user did not click on any buttons on the web form.Is there a way to stop the execution of the button click handlers when the user refreshes the web form page?
 
Back
Top