473,563 Members | 2,805 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Referre r 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 2540
Response.redire ct 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.Referre r 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*@discussion s.microsoft.com > a écrit dans le message de
news:DE******** *************** ***********@mic rosoft.com...
Hello,

In order to go back to the previous page from a page with possible postbacks I keep Request.Referre r 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*@discussion s.microsoft.com > a écrit dans le message de
news:DE******** *************** ***********@mic rosoft.com...
Hello,

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

postbacks
I keep Request.Referre r 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*@discussion s.microsoft.com > a écrit dans le message de
news:FE******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com > a écrit dans le message de
news:DE******** *************** ***********@mic rosoft.com...
Hello,

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

postbacks
I keep Request.Referre r 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
5683
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 information at this point so I am also going to post this in a MySQL related group. I will create some designs and post back to the group if I get...
6
8626
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 the answer was just going to be setting some Keep Together properties to Yes. Alas, it was not to be. It turns out that the report in question is...
4
4544
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, it become problematic. In our asp.net applicaiton, I would like to keep the password in the field, if the page is posted back. Is this possible?...
5
1250
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 know how to keep the page in its current passions I'll be very grateful Thanks
5
2523
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") & "&EventCode=" & Request.Item("EventCode") & "')" When I click the link, the new window opens as expected. The problem is
1
2645
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 and the user leaves the textbox. However, if the entry is selected from the list of previously typed entries, the error does not disappear until the...
10
7220
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 within results.php, MySQL structure seems to work as expected, although i get some problems: As soon as i click on the "Page 2" Link, i get...
15
6700
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 that I can calculate weekly and monthly. At this point I have one entry per search phrase with the number of hits the search phrase has gotten, and...
4
2046
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 form and check for server side validation if the form have some error according to validation it is going to the form again and all the generated textbox...
0
7665
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8106
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6255
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.