Click to See Complete Forum and Search --> : Reset form by killing session


Eltial
August 22nd, 2005, 09:48 PM
Hi Guys,

I havea single page web app, with a LOT of controls on it. I need to reset it, and have stumbled upon the idea of killing the session (so the server doesnt recognise the computer) and then refreshing the page. Is this possible? The reset method that I am using is

'Reset Procedures
Private Sub ResetForm()
Session.Abandon()
Me.ResetForm() <-- by the way, I know this loops... I am trying to say re- request form
End Sub

But i figure that Me.Resetform wont actually request the page, or maybe the session doesnt store the current page state including all values of textboxes and labels in asp... is there any way to reset the form with this little code?

Thanks.

Eltial
August 22nd, 2005, 10:18 PM
Dont worry, figured it out... Im going to say:

'Reset Procedure
Private Sub ResetForm()
Session.Abandon()
Response.Redirect("default.aspx")
End Sub

instead. This resets the page to exactly how it came orrignally from the server on the first request.