I use javascript:hist ory.go(-1) to return to the previous page.
I've now found out that when returning to the previous page all
selections that the user made in dropdownlists are lost. How can these
be kept when returning?
I'm very grateful for fast response.
// S 13 9581
On 15 May, 07:10, sta...@gmail.co m wrote:
I use javascript:hist ory.go(-1) to return to the previous page.
I've now found out that when returning to the previous page all
selections that the user made in dropdownlists are lost. How can these
be kept when returning?
I'm very grateful for fast response.
// S
The previous data is lost because the browser has no way of retaining
it.
You have to use postback events to do the redirection and store the
data in session state.
Hello Staeri
How do you return to the last Page?
If with "history.go(1); , all should work as expected,
because you are only navigating on the browser history.
--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
"Peter Bucher [MVP]" <pe**********@a spnetzone.dewro te in message
news:07******** *************** ***********@mic rosoft.com...
How do you return to the last Page?
If with "history.go(1); , all should work as expected,
because you are only navigating on the browser history.
Clearly, that won't do what the OP wants, because that will simply open the
previous page as it was previously opened... Changes to DropDownLists,
TextBoxes etc will not be "remembered " because ASP.NET has no way of
"rememberin g" them unless as a result of a postback...
--
Mark Rae
ASP.NET MVP http://www.markrae.net
<st****@gmail.c omwrote in message
news:3e******** *************** ***********@56g 2000hsm.googleg roups.com...
>I use javascript:hist ory.go(-1) to return to the previous page.
I've now found out that when returning to the previous page all
selections that the user made in dropdownlists are lost.
Obviously. When you hit the Back button (either directly or in the above
code), the browser opens the previous page in exactly the same way as it was
previously opened - it has no way of "rememberin g" any client-side
modifications made to that page unless they were posted back...
--
Mark Rae
ASP.NET MVP http://www.markrae.net
On 15 Maj, 10:15, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
<sta...@gmail.c omwrote in message
news:3e******** *************** ***********@56g 2000hsm.googleg roups.com...
I use javascript:hist ory.go(-1) to return to the previous page.
I've now found out that when returning to the previous page all
selections that the user made in dropdownlists are lost.
Obviously. When you hit the Back button (either directly or in the above
code), the browser opens the previous page in exactly the same way as it was
previously opened - it has no way of "rememberin g" any client-side
modifications made to that page unless they were posted back...
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Thank you for the answers!
I've stored the dropdownlist selections in sessions but is there a way
to set the dropdownlist selections to the session values when the page
is showed again when clicking the return button with
javascript :hist ory.go(-1)? If it can be made without changing the url
I'm very happy because otherwise there are a lot changes I have to
make because of iframe etc.
// S
Sure. You just need to restore selection from the session in the Page_Load
event.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
<st****@gmail.c omwrote in message
news:91******** *************** ***********@34g 2000hsh.googleg roups.com...
On 15 Maj, 10:15, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
><sta...@gmail. comwrote in message
news:3e******* *************** ************@56 g2000hsm.google groups.com...
>I use javascript:hist ory.go(-1) to return to the previous page.
I've now found out that when returning to the previous page all
selections that the user made in dropdownlists are lost.
Obviously. When you hit the Back button (either directly or in the above code), the browser opens the previous page in exactly the same way as it was previously opened - it has no way of "rememberin g" any client-side modification s made to that page unless they were posted back...
-- Mark Rae ASP.NET MVPhttp://www.markrae.net
Thank you for the answers!
I've stored the dropdownlist selections in sessions but is there a way
to set the dropdownlist selections to the session values when the page
is showed again when clicking the return button with
javascript:hist ory.go(-1)? If it can be made without changing the url
I'm very happy because otherwise there are a lot changes I have to
make because of iframe etc.
// S
This means the browser gets it from the cache. location.reload (true) will
always go to the server. You need to think how to combine both history and
location calls.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net
<st****@gmail.c omwrote in message
news:12******** *************** ***********@2g2 000hsn.googlegr oups.com...
On 15 Maj, 11:18, "Eliyahu Goldin"
<REMOVEALLCAPIT ALSeEgGoldD...@ mMvVpPsS.orgwro te:
Sure. You just need to restore selection from the session in the Page_Load
event.
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net
<sta...@gmail.c omwrote in message
news:91******** *************** ***********@34g 2000hsh.googleg roups.com...
On 15 Maj, 10:15, "Mark Rae [MVP]" <m...@markNOSPA Mrae.netwrote:
<sta...@gmail.c omwrote in message
>news:3e******* *************** ************@56 g2000hsm.google groups.com...
I use javascript:hist ory.go(-1) to return to the previous page.
I've now found out that when returning to the previous page all
selections that the user made in dropdownlists are lost.
Obviously. When you hit the Back button (either directly or in the
above
code), the browser opens the previous page in exactly the same way as
it
was
previously opened - it has no way of "rememberin g" any client-side
modifications made to that page unless they were posted back...
--
Mark Rae
ASP.NET MVPhttp://www.markrae.net
Thank you for the answers!
I've stored the dropdownlist selections in sessions but is there a way
to set the dropdownlist selections to the session values when the page
is showed again when clicking the return button with
javascript:hist ory.go(-1)? If it can be made without changing the url
I'm very happy because otherwise there are a lot changes I have to
make because of iframe etc.
// S- Dölj citerad text -
- Visa citerad text -
It looks like Page_Load isn't fired when returning to the page by
using javascript :hist ory.go(-1). Is that correct?
// S
<st****@gmail.c omwrote in message
news:91******** *************** ***********@34g 2000hsh.googleg roups.com...
I've stored the dropdownlist selections in sessions
Ah - you didn't mention that in your original post...
but is there a way to set the dropdownlist selections to the session
values
when the page is showed again when clicking the return button with
javascript:hist ory.go(-1)? If it can be made without changing the url
I'm very happy because otherwise there are a lot changes I have to
make because of iframe etc.
iframe? You didn't mention that either in your original post...
Anyway, as I see you've already discovered, session won't help you here
because the page is being fetched from cache. Therefore, you'll need to find
some way of preventing this which, depending on how you've set your app up,
will be either fairly trivial or next to impossible: http://www.google.co.uk/search?hl=en...ge+cache&meta=
--
Mark Rae
ASP.NET MVP http://www.markrae.net
What is the purpose of using the back button ?
The intended use is to display the previous page as it was previously seen
by the user. You could also prevent this page from being cached browser side
so that it is fetched again from the server (and possibly then updated).
Or perhaps should you implemnt your own link. What is the meaning of using
the back button in your case ?
--
Patrice
<st****@gmail.c oma écrit dans le message de groupe de discussion : 3e************* *************** **...legroups .com...
I use javascript:hist ory.go(-1) to return to the previous page.
I've now found out that when returning to the previous page all
selections that the user made in dropdownlists are lost. How can these
be kept when returning?
I'm very grateful for fast response.
// S
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marcel |
last post by:
Hello,
I'm working on a search application for my website. The website contains a
lot of pictures, and a search should return clickable thumbnails. No
problems there. My problem started when I wanted to build in NEXT and
PREVIOUS buttons, so that you only get 5 or 10 or 20 (I haven't made up my
mind yet) thumbnails at a time. I use a SQL...
|
by: fig000 |
last post by:
Hi,
I'm relatively new to Javascript so please bear with me on what
might sound like silly questions.
This is what I want to do:
I'm working in classic asp (I have to for this project). I need
to:
1. Click a submit button on an asp page, calling another page
that saves the contents of that form to a database and then displays
|
by: Símun D. Simonsen |
last post by:
Hi,
Hope somebody can help.
After calling a new form, from a link in a record, shown in a
datagrid, set up with paging, how can I return to the previous page
with the datagrid opened with the previous page, and not the first?
Thanks
|
by: venky |
last post by:
Hi,
I have a question regarding page navigation. See i have a page called
page1.aspx and page2.aspx. On some event in the both the pages the page
get transfered to page3.aspx using Server.Transfer method.
One i i hit the update button in the page3, i want to go back to the
previous page which can be either page1 or page2.
|
by: sri_san |
last post by:
Hello,
I am working on a website where I need to navigate to the
previous page once the user clicks on "back" button. I store the
previous page from the "HTTP_REFERER" Server variable and the back
works fine. But unfortunately, I am not able to have the user
selections preserved on the previous page.
Another solution I tried was to user...
| |
by: wiewiek |
last post by:
Is there a way to go back to the previous page when a button (Cancel
button) is hot? It's an ASP control.
Thanks
|
by: staeri |
last post by:
I want to place a return to previous page-link which returns to the
previous page without reloading it.
The reason I don't want to reload the page is that in the Page_load
there is a web service running which I pay for each time it's used.
How can I solve this?
Regards,
|
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 example, if I have
a page with some date controls so I can choose a date range and
postback the page. It then displays results based on that date...
|
by: md9108 |
last post by:
I have a previous page and next page coded. The next page works. The previous page gives me an http: 404 error and I can't figure it out. The error is on the line "<td align=left>
<!--
This is the "previous" button.
This retrieves the previous page of documents for the query.
-->
<%SaveQuery = FALSE%>
<%if CurrentPage > 1 and...
|
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...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
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...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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...
| |