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

goto previous page and refresh - both in one

I need a button, on click you can go previous page (like histry.go(-1))
and then the page is immediately refreshed.

The first page is table from database. When you click to change item,
another page is opened, when you can edit. When you finish editing and
click 'save' you go back to the first page, but this page show old
content (reload/refresh is needed).
I cannot write absolute back address in the Edit page - it can be opened
from serveral diffrent pages and must back to the previous.

Any suggestions?

Thanks in advance
Przem
Jul 23 '05 #1
1 5395
In article <c7**********@nemesis.news.tpi.pl>, pr******@wp.pl
enlightened us with...
I need a button, on click you can go previous page (like histry.go(-1))
and then the page is immediately refreshed.

The first page is table from database. When you click to change item,
another page is opened, when you can edit. When you finish editing and
click 'save' you go back to the first page, but this page show old
content (reload/refresh is needed).
I cannot write absolute back address in the Edit page - it can be opened
from serveral diffrent pages and must back to the previous.

Any suggestions?

There are problems inherent with going back and trying to refresh.
Too many to list here so early in the morning. :)

I got around this problem by having a cookie set that held the URL of
the page the person was on. I conditionally write the cookie depending
on the page, so for some it is written and some it is not. When it is
not written, the last page visited is in that cookie, so when I want to
do a "back" sort of thing (this is also a DB application), I look at
that cookie and send the user to that page along with any URL params
that were present.

So...
The first page is table from database.
Write the cookie here.
When you click to change item,
another page is opened, when you can edit. When you finish editing and
click 'save' you go back to the first page,


Check the cookie here and forward to the page instead of going back,
which will load the fresh content. Convoluted, but it works.

--
--
~kaeli~
Santa's helpers are subordinate clauses.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2

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

Similar topics

3
by: Scott | last post by:
I have a clickable graph that resides on page 1. If user clicks a data point on the graph, the page runs again yeilding a 2nd graph that shows a more detailed graph. Problem is, I have a...
51
by: WindAndWaves | last post by:
Can anyone tell me what is wrong with the goto command. I noticed it is one of those NEVER USE. I can understand that it may lead to confusing code, but I often use it like this: is this...
0
by: sanjay patil via .NET 247 | last post by:
Hello, I have a problem with web image button control click event. I am saving a record to database on click event of this image button. When click event fires first time it executes code...
18
by: Alan Z. Scharf | last post by:
1. I have a chain of six asynch callbacks initiated by a button, and want the page to refresh at the end of each callback to display A. Results of a SQLServer query showing cumulative running...
9
by: PK9 | last post by:
I'm having an issue with the "Refresh" of an asp.net page. The refresh is actually calling my last onClick event. I thought that asp.net was supposed to be stateless in that it shouldn't...
1
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...
4
by: msnews | last post by:
Hi All, My client has following request. I am not sure how to do it. Dynamically from database, we are getting set of images names. Now we want to display them with next and previous buttons....
3
by: Rosanne | last post by:
Is there a way to clear the SelectedIndex of a listbox when the browser's back button is clicked? I have a page that contains a server side list box with AutoPostBack = True. When the user...
3
by: misiek | last post by:
Hi all. I have following scenario: 1. I have a page called Page1.aspx, on which there is some GridView and few texboxes. User can enter some search criteria in textboxes, click Find button and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.