473,546 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Prevent Postbacks in the History List

I've spent quite some time searching for a way to prevent the browser from
adding each of my postbacks to the History list, and have found several
different methods to do that or something similar, all of which either don't
do what I need or don't work at all. The closest solution is to enable
SmartNavigation , but it causes my first postback to effectively be ignored,
and it adds that first page view to the history. If I could figure out how
to get it to work properly with my page, I'd be happy to use it. Is this
typical behavior? Is there a way around it?

Since SmartNavigation isn't working for me, and since it's deprecated, I
tried the replacement solutions suggested by Microsoft
(http://support.microsoft.com/kb/913721).

Disabling the cache prevents my user from getting to an older version of the
page, which is part of what I need to do. But each postback is still added
to the history, so the user will have to scroll through the history to get
past all the postbacks, or hit the Back button many times.

I tried the hidden frame technique, but that didn't work at all for me. I
don't know if I did something wrong (I don't see how), or if it doesn't work
in IE7, or if it doesn't work with .aspx pages. Each postback is still added
to the history, and each Back button takes me to a cached page (unless the
cache is turned off). In practice it's no different than what I started with.

The location.replac e technique still adds the postback to the history, and
wipes out my postback page changes, making it the worst of the four solutions.

I've seen web pages that do what I want. Can it really be that difficult?
How do YOU do it?

Thanks,

Mike.

Apr 13 '07 #1
0 1617

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

Similar topics

3
9977
by: Rob | last post by:
Each time a webform is posted back (submitted), another URL is added to the browser's history list. My web application allows a back button to return to previously visited pages, but I do not wish to return to each Postback URL, but rather only the initial page URL. Is there a way to prevent Postback URL's from being added to the browser's...
3
4130
by: Simon | last post by:
Hi, I need to prevent Internet Explorer to save the page in history collection when it is in PostBack. To try do this I have put this code: protected override void OnLoad( EventArgs evt) { if (IsPostBack) Response.Cache.SetNoStore(); ..... base.OnLoad( evt);
5
2683
by: Raphael Bauduin | last post by:
Hi, I'm looking at the logging of a database we'll put in production soon. I've seen some posts on this list about history tables, like mentioned in http://www-106.ibm.com/developerworks/web/library/wa-dbdsgn2.html . I think I'll go that way too, but I still have some questions on the approach, and would appreciate any advice on it. Here...
20
3601
by: Dan | last post by:
Is there a way to obtain the last page visited? I don't want to go to that page, I just want to be able find out what page they came from, the url of that page. Is this possible?
2
20610
by: Rob Roberts | last post by:
Is there any way to prevent a ButtonField in a GridView from doing a postback when clicked? I want to use my own onclick handler to call window.open('SomePage.aspx') to display a page in a new browser window when the button is clicked. I tried doing this in the RowCommand postback event by doing this in the event handler: ...
3
2628
by: Rafael Tejera | last post by:
I would like to create an history module to my application.. I need some advice to use a duplicate database with who, when and where fields added to that new duplicate table, or create a table with a character field saying which fields have been affected and others fields with who, when and where. What is the best way to keep an historical...
3
2235
by: Niall | last post by:
When I say 'last', I mean (eg.) the 100th item in a 100-item history list, *not* the immediately previous one! The problem is, the history.go() method only allows *relative* movement through the history list. I need to go directly to the end -- an *absolute* movement -- and there doesn't appear to be any way of finding out the number of...
2
9348
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post by:
Hi, Is it possible to clear the recent history so that a link with the href "javascript:window.history.back()" doesn't record any postbacks? For example, if I the user makes a few selections on a page and clicks the Back link, I want them to go to the previous page rather than going to the previous state of the page. Any help is...
2
1712
by: pavanip | last post by:
Hi, I am using the following code to get Internet Explorer filepath to display history list. filePath1 = Environment.GetFolderPath(Environment.SpecialFolder.History) by using the above path i am getting only internet explorer history list. Please anyone can give suggestions how to get Firefox history list?where it will store these data?...
0
7507
marktang
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...
0
7435
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...
0
7698
Oralloy
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. ...
0
6030
agi2029
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...
1
5361
isladogs
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...
0
5080
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...
0
3492
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...
0
3472
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.