I added a 'Back' button to my page, and wrote 'OnClick'
code something like this:
Response.Write("<script>history.go(-" +
iDepthIndex.ToString() + ");</script>");
But, it dosnt work! Effect is that browser navigates to
desired page as expected and go back from where it
started! But, the 'Back' button on browser works normaly.
I dont get it!!??
Thanks in advance,
Vedran 4 7502
Here's some back button code that may work out better for you: http://www.ftponline.com/vsm/2003_07...ne/columns/qa/
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
"Hypo" <ve*****************@hypo-alpe-adria.com> wrote in message
news:06****************************@phx.gbl... I added a 'Back' button to my page, and wrote 'OnClick' code something like this:
Response.Write("<script>history.go(-" + iDepthIndex.ToString() + ");</script>");
But, it dosnt work! Effect is that browser navigates to desired page as expected and go back from where it started! But, the 'Back' button on browser works normaly. I dont get it!!??
Thanks in advance, Vedran
Thanks for the link but thats not what i wanted. That
custom 'back' button uses Page.Redirect() method to
navigate and that is not acceptible because original page
(the page i want to return to) can go to several round-
trips and transformations and my intention is to go back
to exact same state of page what was left behind. Exactly
same behavior like browser 'back' button. I still cant
figure it out why JScript 'history.back()' doesn work
properly, any ideas ... ? And, btw, I navigate to that
page (with 'back' button) using Server.Transfer() method.
Thanks -----Original Message----- Here's some back button code that may work out better
for you:http://www.ftponline.com/vsm/2003_07...ne/columns/qa/
-- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net
"Hypo" <ve*****************@hypo-alpe-adria.com> wrote
in messagenews:06****************************@phx.gbl... I added a 'Back' button to my page, and wrote 'OnClick' code something like this:
Response.Write("<script>history.go(-" + iDepthIndex.ToString() + ");</script>");
But, it dosnt work! Effect is that browser navigates to desired page as expected and go back from where it started! But, the 'Back' button on browser works
normaly. I dont get it!!??
Thanks in advance, Vedran
.
Thanks for the link but thats not what i wanted. That
custom 'back' button uses Page.Redirect() method to
navigate and that is not acceptible because original page
(the page i want to return to) can go to several round-
trips and transformations and my intention is to go back
to exact same state of page what was left behind. Exactly
same behavior like browser 'back' button. I still cant
figure it out why JScript 'history.back()' doesn work
properly, any ideas ... ? And, btw, I navigate to that
page (with 'back' button) using Server.Transfer() method.
Thanks -----Original Message----- Here's some back button code that may work out better
for you:http://www.ftponline.com/vsm/2003_07...ne/columns/qa/
-- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net
"Hypo" <ve*****************@hypo-alpe-adria.com> wrote
in messagenews:06****************************@phx.gbl... I added a 'Back' button to my page, and wrote 'OnClick' code something like this:
Response.Write("<script>history.go(-" + iDepthIndex.ToString() + ");</script>");
But, it dosnt work! Effect is that browser navigates to desired page as expected and go back from where it started! But, the 'Back' button on browser works
normaly. I dont get it!!??
Thanks in advance, Vedran
.
OIC, well Server.Transfer is likely the cause of some of your headaches.
You see this operation happens entirely on the server and the browser is
never even notified. When you say history.back, you're telling the browser
to go back a page. So it does - according to it's history, not knowing
about the server.transfer that took place on the server. You may have
better luck if you use Response.Redirect instead since this happens through
the browser.
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
"Hypo" <ve*****************@hypo-alpe-adria.com> wrote in message
news:0c****************************@phx.gbl... Thanks for the link but thats not what i wanted. That custom 'back' button uses Page.Redirect() method to navigate and that is not acceptible because original page (the page i want to return to) can go to several round- trips and transformations and my intention is to go back to exact same state of page what was left behind. Exactly same behavior like browser 'back' button. I still cant figure it out why JScript 'history.back()' doesn work properly, any ideas ... ? And, btw, I navigate to that page (with 'back' button) using Server.Transfer() method.
Thanks
-----Original Message----- Here's some back button code that may work out better for you:http://www.ftponline.com/vsm/2003_07...ne/columns/qa/
-- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net
"Hypo" <ve*****************@hypo-alpe-adria.com> wrote in messagenews:06****************************@phx.gbl... I added a 'Back' button to my page, and wrote 'OnClick' code something like this:
Response.Write("<script>history.go(-" + iDepthIndex.ToString() + ");</script>");
But, it dosnt work! Effect is that browser navigates to desired page as expected and go back from where it started! But, the 'Back' button on browser works normaly. I dont get it!!??
Thanks in advance, Vedran
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Peter D. Dunlap |
last post by:
Hello,
I realize that this may not be the best place to ask this question,
through the application is asp.net. I also realize that questions...
|
by: Galina |
last post by:
Hello
I have 6 dependent list boxes on my ASP page:
Faculty;
Lecturer;
Course;
Course occurrence;
Group;
Week commencing date....
|
by: Johan Nedin |
last post by:
Hello!
I am having a problem with the @OutputCache page directive and Web
browser Back Buttons.
Problem:
After setting <%@ OutputCache...
|
by: Shimon Sim |
last post by:
Hi,
Every time I write ASP.NET application I have the same problem - Back button
on the browser is my enemy. I have to tell client avoid using...
|
by: Tom wilson |
last post by:
I can't believe this is such an impossibility...
I have an asp.net page. It accepts data through on form fields and
includes a submit button. ...
|
by: tshad |
last post by:
I am trying to set up a Javascript popup box that has a way of sending back
a message to asp.net on how to process some data.
At the moment I am...
|
by: ns21 |
last post by:
How can the browser back button be disabled If the form is submitting
information to other pages or submitting to itself or using
redirections.
...
|
by: mohammed.naghman |
last post by:
Hi,
I have 2 submit buttons in a jsp page. One of them takes me to
page2.jsp and also passes the values enetered to page2.I have a link
in the...
|
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= |
last post by:
I the page knows there was a cross post back. but i can not find the control.
(asp.net 3.5)
calling page has a master
calling control:...
|
by: Harvey Schmidlapp |
last post by:
I have a fairly complex form (generated by means of an ASP 3 page).
The form is used to define a query against a database. After running a
query,...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
|
by: Matthew3360 |
last post by:
Hi,
I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
|
by: Oralloy |
last post by:
Hello Folks,
I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA.
My problem (spelled failure) is with the...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
| |