Link to home
Start Free TrialLog in
Avatar of barnesco
barnesco

asked on

Can elements maintain state after postback

Is there a way to maintain the current state of an html element (whether it's checked or unchecked) when you post back a page? If so, could someone provide an example? None of these elements are in the code behind file, so using Not IsPostBack won't work, unless there's a way to place them there.

Right now, when my page refreshes, all the elements are reset to their defaults.

Thanks.
SOLUTION
Avatar of Krule
Krule
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of barnesco
barnesco

ASKER

Hadn't thought about cookies and using a database might be even better. I've been using hidden variables on page.

Thanks.