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

How to keep entries intact when going BACK to a web page

Nad
Hello,

In order to go back to the previous page from a page with possible postbacks
I keep Request.Referrer in ViewState and then use it to redirect to the
previous page. However I am losing all the information entered in the
previous page. I also want to keep the entries in many fields/controls in the
previous page.

Is there a way to keep the information in the previous page intact when you
get back to it?

Nov 19 '05 #1
6 2528
Response.redirect creates a new page instance and causes another
server/client roundtrip, and it will behave as if its a first time call
to a page. Thats why youre losing your control's values.

Nad wrote:
Hello,

In order to go back to the previous page from a page with possible postbacks
I keep Request.Referrer in ViewState and then use it to redirect to the
previous page. However I am losing all the information entered in the
previous page. I also want to keep the entries in many fields/controls in the
previous page.

Is there a way to keep the information in the previous page intact when you
get back to it?

Nov 19 '05 #2
Not clear.

Where are recorded the value entered in the previous page ? Nowhere ? If yes
just recreate the page with those stored values...

Patrice

--

"Nad" <Na*@discussions.microsoft.com> a écrit dans le message de
news:DE**********************************@microsof t.com...
Hello,

In order to go back to the previous page from a page with possible postbacks I keep Request.Referrer in ViewState and then use it to redirect to the
previous page. However I am losing all the information entered in the
previous page. I also want to keep the entries in many fields/controls in the previous page.

Is there a way to keep the information in the previous page intact when you get back to it?

Nov 19 '05 #3
Nad,

I am not sure how your application is set up, but one way you might
want to handle the multiple pages is to simply give the illusion of
separate pages using panels, allowing you to show and hide the various
panels without losing the user's inputted data. Of course, if this
is not possible, you will have to repopulate the various pages, as far
as I know.

I hope this helps,
Aaron

Nov 19 '05 #4
Nad
Hi Patrice,

The user has made entries in the previous page's controls. So when I go back
I lose them. I guess the best way to store these entries would be via session
variables right?

"Patrice" wrote:
Not clear.

Where are recorded the value entered in the previous page ? Nowhere ? If yes
just recreate the page with those stored values...

Patrice

--

"Nad" <Na*@discussions.microsoft.com> a écrit dans le message de
news:DE**********************************@microsof t.com...
Hello,

In order to go back to the previous page from a page with possible

postbacks
I keep Request.Referrer in ViewState and then use it to redirect to the
previous page. However I am losing all the information entered in the
previous page. I also want to keep the entries in many fields/controls in

the
previous page.

Is there a way to keep the information in the previous page intact when

you
get back to it?


Nov 19 '05 #5
For now I don't understand the exact scheme. When talking about the
"previous" page do you mean the "back" button of the browser ?

Or is this something like :
- enter some data on a page
- click a link to display another page in the same window
- click a link to "go back" to the "previous" page

Remember that each page lives as long as it is displayed. In this case you
would have to keep those values around so that you are able to display again
the page.

--
Patrice

"Nad" <Na*@discussions.microsoft.com> a écrit dans le message de
news:FE**********************************@microsof t.com...
Hi Patrice,

The user has made entries in the previous page's controls. So when I go back I lose them. I guess the best way to store these entries would be via session variables right?

"Patrice" wrote:
Not clear.

Where are recorded the value entered in the previous page ? Nowhere ? If yes just recreate the page with those stored values...

Patrice

--

"Nad" <Na*@discussions.microsoft.com> a écrit dans le message de
news:DE**********************************@microsof t.com...
Hello,

In order to go back to the previous page from a page with possible

postbacks
I keep Request.Referrer in ViewState and then use it to redirect to the previous page. However I am losing all the information entered in the
previous page. I also want to keep the entries in many fields/controls
in the
previous page.

Is there a way to keep the information in the previous page intact
when you
get back to it?


Nov 19 '05 #6
Nad
Thank you Aaron,

It's a good idea. I will take it into consideration.

"Aaron Corcoran" wrote:
Nad,

I am not sure how your application is set up, but one way you might
want to handle the multiple pages is to simply give the illusion of
separate pages using panels, allowing you to show and hide the various
panels without losing the user's inputted data. Of course, if this
is not possible, you will have to repopulate the various pages, as far
as I know.

I hope this helps,
Aaron

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: fwells11 | last post by:
Hi there. As you will see from my questions, I am an SQL newb. I dabble but never get to spend enough time to get proficient so base any feeedback on that basis please. This is all theoretical...
6
by: Steve Jorgensen | last post by:
I tried to fix a problem for a client today in which report sections and even individual text controls in some of their reports are being split across page boundaries. Of course, I was thinking...
4
by: feng | last post by:
For a HTTP textbox with a Type of "password", the default behaiver is that the field will be cleared out when the page is posted back. This make sense in most of the cases. But in some situation,...
5
by: okaminer | last post by:
Hi My web page is bigger then the screen, this causes the following problem: every time I raise a change event in DropDownList my page is going back to the TOP which annoy my users. If any of you...
5
by: Chris | last post by:
Hello, I have a link on an aspx page. The URL is set in the Page Load event: lnkEventHistory.NavigateUrl = "javascript:window.open('EventHistory.aspx?TeenID=" & _ Request.Item("SubjectID") &...
1
by: Nathan Sokalski | last post by:
When testing a form of mine which uses RequiredFieldValidators that have the Display property set to "Dynamic" the ErrorMessage property is automatically removed when an entry is completely typed...
10
by: EOZyo | last post by:
Hi, i'm trying to set pagination for a search i run on my website, i'll try to explain the easiest i can: When i click the search button on search.php, data is received and stored in variables...
15
by: l3vi | last post by:
I have a new system Im building that stores entries of what people are searching for on my sites. I want to be able to keep records of how many times a keyword was searched for daily, and from...
4
samikhan83
by: samikhan83 | last post by:
hi All Experts.... once again i am in some problem....... i have a form which creates a new textbox elements when a new product is scanned with barcode scanner. Problem is when i submit the...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.