473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Saving state in a page

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
2 1196
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jacob H | last post by:
Hello list... I'm developing an adventure game in Python (which of course is lots of fun). One of the features is the ability to save games and restore the saves later. I'm using the pickle...
5
by: Michael Albanese | last post by:
Can you save objects a (custom class) to Viewstate and then get them on a later page?? I have a custom class for an ASP.Net application that I would like to make available across several web...
1
by: Mahesh Devjibhai Dhola [MVP] | last post by:
Hi, User can adjust the size of columns of a table or the position of splitter in UI. We want these adjustments to be remembered when we restart the application. Currently, we are saving these...
11
by: cwdjrxyz | last post by:
Several threads have discussed the accuracy of time calculated using script when Daylight Saving Time (DST) is considered. A page at http://webexhibits.org/daylightsaving/ gives much information on...
0
by: headware | last post by:
I've been reading about saving the state of the controls of a page so the user can be redirected to another page and then return to the original in the state it was in when they left. I've seen a...
2
by: Carpe Diem | last post by:
Hello all. My host is experiencing some troubles and I think you'll answer me before they can. After I uploaded a slightly changed JScript.NET .aspx page (the contents are not important, could be...
3
by: Clay Black | last post by:
I need to find a way to save an HTML page to the IIS server. What I need is to have a button that once it is clicked the current page being displayed is saved to a location on the local IIS...
2
by: kinh | last post by:
In my current PHP project, I have to read pages from a website and parse the data. If using the Internet browser, I would have to do the following steps: Step 1: specify the state to display by...
1
by: Jeff | last post by:
I need to place a "Previous Page" link on every page within my site and a simple javascript:history.back() will not work because I need it to capture the state of the page when I left it. For...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.