By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,665 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,665 IT Pros & Developers. It's quick & easy.

Saving state in a page

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

"BÝrge Hansen" <so*****@somewhere.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #2

P: n/a
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

"BÝrge Hansen" <so*****@somewhere.com> wrote in message
news:#k**************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.