Saving state in a page

  • Thread starter Thread starter Børge Hansen
  • Start date Start date
B

Børge Hansen

Hi.

I am trying to create functionality for saving the contents (state) of a
page. The idea is that when navigating away from a webpage and later
returning the state of the textboxes, etc should be reinstated.... Just like
Viewstate, but not....

Basicly I have a tabbed GUI and wants to make the webapp work like a winform
with tabs....

Anyone got any ideas?

Thanks anyway.

Børge
 
Hi,

You could have it all on one page, and use panels with user controls for
each tab. That way, you'd still only have one page (with one viewstate) for
all tabs. (e.g. ActivePanel.Visible = true; OtherPanel.Visible = false;)


Sincerely,
Nils Magnus Englund
 
Hi Børge,

If we keep separation of UI and business logic in mind, the most obvious
solution would be to tie the front-end page to a back-end class, which
maintains the state of the data in the page, NOT the HTML elements in the
page, and have the page initialize itself from the data. Then you can store
the class in Session State, Application State, or even in a database of some
kind. When the user navigates back to the page, it reads the data from the
cached store and re-initializes itself.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top