473,480 Members | 2,194 Online
Bytes | Software Development & Data Engineering Community
Create 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.replace 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 1613

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

Similar topics

3
9958
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...
3
4121
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...
5
2677
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...
20
3588
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
20598
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...
3
2624
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...
3
2225
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...
2
9343
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...
2
1700
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...
0
7054
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,...
0
7057
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,...
0
7102
jinu1996
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...
0
5357
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,...
1
4798
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...
0
4495
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...
0
3000
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
570
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
199
bsmnconsultancy
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...

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.