If I have a basic web application built in asp.net/vb.net, with a single button on the web page. When this button is clicked, it triggers some functionality in the code behind. What I want to achieve is to run a JavaScript function after the page reloads, following the completion of server-side operations.
The condition is that this JavaScript function should only execute if the button was specifically clicked, not on every page load. Is there an easy method to accomplish this?