p0enkie
p0enkie

Reputation: 693

How to let textbox remember its value

Hi I can't seem to find a solution that works for me. I have two panels: Websiteform and Licenceform. The user enter his/her credentials in a textbox, their credentials get verified. Now after the credentials have been verified and the user clicks the back button to go from websiteform to licenceform, I need the credentials to still be there when we return to websiteform.

This should only work for the current session as starting a new session will have all controls revert to default values.

Upvotes: 1

Views: 869

Answers (1)

joshua
joshua

Reputation: 2371

There are Many ways to remember the values.but which to use it depends on you.cause you want remain value according the session so .

You can Use Session variable.put the corresponding values like...

 System.Web.HttpContext.Current.Session[SessionstringName] = SessionValue;

And acess those value..

   (TypeCast)System.Web.HttpContext.Current.Session[SessionstringName]

Upvotes: 1

Related Questions