Click to See Complete Forum and Search --> : When Back Button is pressed


Nagul
April 10th, 2003, 01:42 PM
Hi All,
I am facing a problem. I am altering a value of a texbox in the client side using javascript and then posting the form to the server. AT server, I am checking the value of that textbox and redirecting the page. But the problem what i am facing is , if a user presses back button in his IE and when the form is again posted to the server it has that value. Which it shouldn't have. Can anyone tell me , how to clear those values ???

hellomadhu
April 11th, 2003, 05:07 AM
u say that u redirect using the value in that text box. i think the box should be invisible on the browser.

am i right ?

if its an invisible textbox that u use only from ur code, then try changing textbox to a password field so that the value gets cleared when u navigate using back button.

if the textbox is something visible to the user and the user can change the values, then sorry i dont know how to do !

Nagul
April 11th, 2003, 05:11 AM
Thanks for the time taken by you to send me the answer. Your idea is good. But i have solved it in another way. I have cleared the textbox value on the onload event.
Once again thanks.

hellomadhu
April 11th, 2003, 07:11 AM
good solution!

i think ur solution is more appropriate for this problem.