I have a HTML form on my ASP page. It submits to the same page (itself). On the submit, it makes a database call (based on the user input) and stores an output varaible (coming back from that call) into a session variable.
On the client-side of it, I have some javescript code based on that session variable. Now everything works fine upto this point. But when the user moves from that page and then hits the BACK button, the javascript code executes again that has already executed before.
I have tried everything to prevent it from happening. I have tried to reset the session variable but hitting the back button takes the user back to the previous state of the page when the session variable was not "reset." What am I doing wrong? I must be missing something very very basic.
On the client-side of it, I have some javescript code based on that session variable. Now everything works fine upto this point. But when the user moves from that page and then hits the BACK button, the javascript code executes again that has already executed before.
I have tried everything to prevent it from happening. I have tried to reset the session variable but hitting the back button takes the user back to the previous state of the page when the session variable was not "reset." What am I doing wrong? I must be missing something very very basic.