Howdy,
I have a cancel button, I would like to send them to the previous page they
were on. For example, they are viewing a queue of tickets. They can click on
a ticket and update it if they wish, or view other information. When viewing
some of the other details, the page is reloaded to show and hide some
controls. If they click Cancel, I'd like to send them back to the queue.
Normally, I would simply do a response.redirect("queue.aspx"), but there are
other pages they could've come from, myqueue, find ticket, etc.
thanks!!!
david Lozzi 5 1338
You could probably accomplish this with some javascript.
Here's an example: http://www.ftponline.com/vsm/2003_07...ne/columns/qa/
--
I hope this helps,
Steve C. Orr, MCSD, MVP http://SteveOrr.net
"David Lozzi" <dlozzi@(remove)delphi-ts.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Howdy,
I have a cancel button, I would like to send them to the previous page they were on. For example, they are viewing a queue of tickets. They can click on a ticket and update it if they wish, or view other information. When viewing some of the other details, the page is reloaded to show and hide some controls. If they click Cancel, I'd like to send them back to the queue. Normally, I would simply do a response.redirect("queue.aspx"), but there are other pages they could've come from, myqueue, find ticket, etc.
thanks!!!
david Lozzi
The problem with that is the the back button will load the same page if
somethin posted back. basically i need to collect the referring page at
first load, then store it somewhere and use it when necessary. I guess store
it in a hidden text field?
Also, I read that Request.ServerVariables("HTTP_REFERER") only collects
pages when a <a> tag was used to reach the current page. Any idea on how to
collect the previous page is a response.redirect was used?
Thanks,
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl... You could probably accomplish this with some javascript. Here's an example: http://www.ftponline.com/vsm/2003_07...ne/columns/qa/
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"David Lozzi" <dlozzi@(remove)delphi-ts.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Howdy,
I have a cancel button, I would like to send them to the previous page they were on. For example, they are viewing a queue of tickets. They can click on a ticket and update it if they wish, or view other information. When viewing some of the other details, the page is reloaded to show and hide some controls. If they click Cancel, I'd like to send them back to the queue. Normally, I would simply do a response.redirect("queue.aspx"), but there are other pages they could've come from, myqueue, find ticket, etc.
thanks!!!
david Lozzi
No. You cannot get a page that's sent via Response.Redirect(...)
because the "Referer" header does not change.
It's a protocol issue. Redirect(...) sends a 302 (Moved Temporarily)
code to the client and client takes actions accordingly.
--
Cheers,
Gaurav Vaish http://www.mastergaurav.org http://mastergaurav.blogspot.com
--------------------------------
On pages that need this "cancel" feature, I will place &ReturnUrl=page.aspx
in the querystring, then on the first page load, pull it off querystring and
store it in a hidden textfield. This way there are no Response.Redirect
problems, plus I can keep the querystring with the previous page and when I
cancel to it, it will have the querystring of the first page as well.
bill
"David Lozzi" <dlozzi@(remove)delphi-ts.com> wrote in message
news:eP**************@TK2MSFTNGP14.phx.gbl... The problem with that is the the back button will load the same page if somethin posted back. basically i need to collect the referring page at first load, then store it somewhere and use it when necessary. I guess
store it in a hidden text field?
Also, I read that Request.ServerVariables("HTTP_REFERER") only collects pages when a <a> tag was used to reach the current page. Any idea on how
to collect the previous page is a response.redirect was used?
Thanks,
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:%2***************@TK2MSFTNGP12.phx.gbl... You could probably accomplish this with some javascript. Here's an example: http://www.ftponline.com/vsm/2003_07...ne/columns/qa/
-- I hope this helps, Steve C. Orr, MCSD, MVP http://SteveOrr.net
"David Lozzi" <dlozzi@(remove)delphi-ts.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Howdy,
I have a cancel button, I would like to send them to the previous page they were on. For example, they are viewing a queue of tickets. They
can click on a ticket and update it if they wish, or view other
information. When viewing some of the other details, the page is reloaded to show
and hide some controls. If they click Cancel, I'd like to send them back to the queue. Normally, I would simply do a
response.redirect("queue.aspx"), but there are other pages they could've come from, myqueue, find
ticket, etc.
thanks!!!
david Lozzi
yeah, i figured i would have to do something like that.
thanks,
david
"William F. Robertson, Jr." <th****@nameht.org> wrote in message
news:OQ**************@TK2MSFTNGP09.phx.gbl... On pages that need this "cancel" feature, I will place &ReturnUrl=page.aspx in the querystring, then on the first page load, pull it off querystring and store it in a hidden textfield. This way there are no Response.Redirect problems, plus I can keep the querystring with the previous page and when I cancel to it, it will have the querystring of the first page as well.
bill
"David Lozzi" <dlozzi@(remove)delphi-ts.com> wrote in message news:eP**************@TK2MSFTNGP14.phx.gbl... The problem with that is the the back button will load the same page if somethin posted back. basically i need to collect the referring page at first load, then store it somewhere and use it when necessary. I guess store it in a hidden text field?
Also, I read that Request.ServerVariables("HTTP_REFERER") only collects pages when a <a> tag was used to reach the current page. Any idea on how to collect the previous page is a response.redirect was used?
Thanks,
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message news:%2***************@TK2MSFTNGP12.phx.gbl... > You could probably accomplish this with some javascript. > Here's an example: > http://www.ftponline.com/vsm/2003_07...ne/columns/qa/ > > -- > I hope this helps, > Steve C. Orr, MCSD, MVP > http://SteveOrr.net > > > "David Lozzi" <dlozzi@(remove)delphi-ts.com> wrote in message > news:%2****************@TK2MSFTNGP12.phx.gbl... >> Howdy, >> >> I have a cancel button, I would like to send them to the previous page >> they were on. For example, they are viewing a queue of tickets. They can >> click on a ticket and update it if they wish, or view other information. >> When viewing some of the other details, the page is reloaded to show and >> hide some controls. If they click Cancel, I'd like to send them back >> to >> the queue. Normally, I would simply do a response.redirect("queue.aspx"), >> but there are other pages they could've come from, myqueue, find ticket, >> etc. >> >> thanks!!! >> >> david Lozzi >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: brianj7675 |
last post by:
Basically i'm trying to write a previous next link in order to go to
the next page in my database(similar to google's with numbers in the
middle for pages the user wants to jump to.
My only...
|
by: vincent |
last post by:
Hi,
If i login to the site again (may be in the same pc or
different pc), system must allow me in and end my previous
session.
How do i go about doing this?
This is to ensure that an user...
|
by: Larry Grady |
last post by:
Anyone up for a challenge?
I've been struggling with this for a few days and was hoping someone could
help me. Pouring through all the messageboards I just can't find the
solution.
We have a...
|
by: jfarthing |
last post by:
Hi everyone!
I am using the script below to search a db. If the is more than one match in the db, all goes well. But if there is only one match in the db, nothing gets displayed.
Any...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
| |