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 1 5427
In article <c7**********@n emesis.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 recordset table on the 2nd graph page and because the
user gets to it by clicking the graph, the page doesn't properly post to
render the recordset table. I can click "Refresh" on 2nd page and table
displays fine.
Is there an ASP refresh command that...
|
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 wrong?????
Function x
select case z
|
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 associate with click event(As I expected). The problem is when you refresh page it fires a click event automatically.
I looked around many posts and did not find any topics about this problem. Infact the same behavior occured for regular web button...
|
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 time, and
B. A progress bar.
2. I have this working with a refresh timer:
<META http-equiv="refresh" content="5">
|
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 remember that I clicked a button before
the refresh. Here is what is going on:
1) Page Loads
2) User enters some values, clicks the "Save" button
3) The onClick event handler for the save button saves the data to the
database and the page is...
| |
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 javascript's history method.It
does not work for some reason as it asks to refresh the page from the...
|
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.
I am able to pull all the information from database and put it in javascript
array. Now using two functions for next and previous button, I am able to
browse through the images.
|
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 clicks an item in the listbox, they are redirected
to an information page based on their selection. On this information
page, if the user clicks the browser's back button they are taken back
to the first page with the item in the listbox still...
|
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 then search results are presented in the GridView.
2. User can select some row and click Edit button.
3. New page (Page2.aspx) is opened in new window, where user can edit
selected record.
4. User clicks OK and then Page2.aspx is closed.
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |