Click to See Complete Forum and Search --> : Back button to activate page load


deszling
February 2nd, 2006, 10:38 PM
Hi,

I have a page called RegisterPage.
In this page, there are some textboxes and a "Register" button.
THis is what happens when user click this button.
1) Insert a new record into my database using the values user keyed in
2) Hide the register button.
My specification is that if user goes to another page and then comes back to this RegisterPage (either by pressing the "Back" button or typing in the link) again, the Register button should remain hidden.

However, this is not the case. It seems to just remember that the button was there and will show the RegisterPage with the "Register" button. How can I solve this?

Thanks

ITGURU
February 8th, 2006, 11:46 PM
Dear deszling,

For achieve this functionality you have to store some variable in Session which state that whether Register Button is pressed on RegisterPage and on Load of RegisterPage check the Session variable value and accordingly do the activity i.e. Hide/Show the Register Button.