473,387 Members | 1,493 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,387 software developers and data experts.

Saving state after moving to another page.

What is the recommended approach for the following scenario?

I have a page that has a button that when clicked transfers to a new page
where the user selects an item from a list. Once that item is selected, I'd
like to transfer back to the original page, BUT I need that page with the
same state when the user clicked the button.

I am using ASP.Net 2.0
Nov 19 '05 #1
4 978
One of the simplest solutions is to have one page that acts like two, by
having two different panels in it. You'll only show one panel at a time.
That way everything can be kept in viewstate the whole time.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"rmunson8" <rm******@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
What is the recommended approach for the following scenario?

I have a page that has a button that when clicked transfers to a new page
where the user selects an item from a list. Once that item is selected,
I'd
like to transfer back to the original page, BUT I need that page with the
same state when the user clicked the button.

I am using ASP.Net 2.0

Nov 19 '05 #2
Here's further reading on the subject for you:
http://SteveOrr.net/faq/SaveState.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
One of the simplest solutions is to have one page that acts like two, by
having two different panels in it. You'll only show one panel at a time.
That way everything can be kept in viewstate the whole time.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"rmunson8" <rm******@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
What is the recommended approach for the following scenario?

I have a page that has a button that when clicked transfers to a new page
where the user selects an item from a list. Once that item is selected,
I'd
like to transfer back to the original page, BUT I need that page with the
same state when the user clicked the button.

I am using ASP.Net 2.0


Nov 19 '05 #3
Thanks Steve, that would definitely work, but seems like a less than ideal or
a "non-standard" approach for a seemingly very common scenario. Is that how
most handle it?

"Steve C. Orr [MVP, MCSD]" wrote:
One of the simplest solutions is to have one page that acts like two, by
having two different panels in it. You'll only show one panel at a time.
That way everything can be kept in viewstate the whole time.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"rmunson8" <rm******@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
What is the recommended approach for the following scenario?

I have a page that has a button that when clicked transfers to a new page
where the user selects an item from a list. Once that item is selected,
I'd
like to transfer back to the original page, BUT I need that page with the
same state when the user clicked the button.

I am using ASP.Net 2.0


Nov 19 '05 #4
Actually, for a simple scenario such as you describe it is a very common
solution.
It's not the most efficient possible solution, but it is the simplest and
most maintainable.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"rmunson8" <rm******@discussions.microsoft.com> wrote in message
news:0C**********************************@microsof t.com...
Thanks Steve, that would definitely work, but seems like a less than ideal
or
a "non-standard" approach for a seemingly very common scenario. Is that
how
most handle it?

"Steve C. Orr [MVP, MCSD]" wrote:
One of the simplest solutions is to have one page that acts like two, by
having two different panels in it. You'll only show one panel at a time.
That way everything can be kept in viewstate the whole time.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"rmunson8" <rm******@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
> What is the recommended approach for the following scenario?
>
> I have a page that has a button that when clicked transfers to a new
> page
> where the user selects an item from a list. Once that item is
> selected,
> I'd
> like to transfer back to the original page, BUT I need that page with
> the
> same state when the user clicked the button.
>
> I am using ASP.Net 2.0


Nov 19 '05 #5

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...
3
by: Martin | last post by:
Hi all As my posting title suggests I'm having problems using InProc Session state in my ASP .NET app. I wrote a site for a friend which uses ADO .NET to keep track of a simple...
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...
8
by: Anthony P. Mancini | last post by:
I'm working on a proof of concept that will ultimately be deployed on a load balancer. For the sake of a preliminary demonstration I created a C# object and marked it's attributes as Public...
2
by: Børge Hansen | last post by:
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...
6
by: Ramesh | last post by:
Hi, We are receiving an error 'The operation has timed out' when our ASP.NET application on Web Server stores large files 10MB+ on the App Server using HTTP PUT. This is a Server to Server...
1
by: google | last post by:
I have a form with several subforms. Users enter the data, then on the parent there is a command button that runs code to generate a .pdf document from a report based on the data they are working...
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...
9
by: Wingot | last post by:
Hey, I am using Visual Studio 2008 Beta 2 for some application development in C#, but I presume that the following question applies equally well to any environment.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.