Refresh ASP Page
Posted on 2002-07-29
In an ASP page I am traping a onchange event on input box and calling a VBScript function for this event.
here I am setting a Hidden box value to '1'.
In the asp I am geting this hidden box value by request.form and if it is '1', I am using a function of my own com object. It is working fine.
I am using VBscript at the end of the ASP to reset it to '0'
But after this If I press Refresh / F5 button the hidden box value is still '1'. So calling the com funtion again.
I want to call the function only onchange event and not on refresh. ASP gives hidden box value as "" on first launch and on refresh it gives '1'.
Is there any function in ASP that runs while the user presses the Refresh/F5 button?