473,378 Members | 1,555 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Clearing back history in IE as a hosted control.

I have an IE control that I host in my app, I usually Load() documents to
IE, but the user can navigate using links as well.
I want to clear the history (only the back & forward, actuall) when I Load()
a new document into IE, how can I do this?
Nov 15 '05 #1
4 4582
HI,

I don't know how you can clear the history. but canceling
OnBeforeNavigate2() event (fired by WebBrowser Control), I think you can
prevent back & forward operation.

--
Hiroaki SHIBUKI
"Ayende Rahien" <Ay****@no.spam> wrote in message
news:OK**************@TK2MSFTNGP11.phx.gbl...
I have an IE control that I host in my app, I usually Load() documents to
IE, but the user can navigate using links as well.
I want to clear the history (only the back & forward, actuall) when I Load() a new document into IE, how can I do this?


Nov 15 '05 #2
though and not a solution to the problem. If you want to prevent users from
navigating backward you should disable the cache on both the client and the
server thru the response object. WIth the cache disable, attempting to
navigate backward produces a page expired warning.

Response.Cache.SetCacheability(HttpCacheability.Se rverAndNoCache);
--
Regards,
Alvin Bruney
Got DotNet? Get it here...
http://www.networkip.net/dotnet/tidbits/default.htm
"Hiroaki SHIBUKI [MVP]" <jp****@microsoft.com> wrote in message
news:ek**************@tk2msftngp13.phx.gbl...
HI,

I don't know how you can clear the history. but canceling
OnBeforeNavigate2() event (fired by WebBrowser Control), I think you can
prevent back & forward operation.

--
Hiroaki SHIBUKI
"Ayende Rahien" <Ay****@no.spam> wrote in message
news:OK**************@TK2MSFTNGP11.phx.gbl...
I have an IE control that I host in my app, I usually Load() documents to IE, but the user can navigate using links as well.
I want to clear the history (only the back & forward, actuall) when I

Load()
a new document into IE, how can I do this?

Nov 15 '05 #3

"Alvin Bruney" <vapor at steaming post office> wrote in message
news:ON**************@TK2MSFTNGP09.phx.gbl...
though and not a solution to the problem. If you want to prevent users from navigating backward you should disable the cache on both the client and the server thru the response object. WIth the cache disable, attempting to
navigate backward produces a page expired warning.

Response.Cache.SetCacheability(HttpCacheability.Se rverAndNoCache);


The problem is not with me as server, the problem is with me as *client*.
I want to reset IE's history when I move from one doc to another so the user
would've a context shift if he accidently click back.
Nov 15 '05 #4
Check for required functions in two places:

IUrlHistory - this group of interfaces controls reading writing and many
other functions with regard to history records.
find it in MSDN or Platfrom SDK after searching for IUrlHistoryStg (or
IUrlHistoryStg2) - it is hidden in content.

and

TravelLog - this group of interfaces controls access and managment of IE
travel history
ms-help://MS.PSDK.1033/inet/workshop/browser/travellog/travellog.htm

Both will give you app a full control over recording and reading history of
browsing. Actually I work on similar functionality right now and I am going
to implement these interfaces in my app. It does require some advanced
interop programming but one can cope with it.

Hope this helps.

Jacek

Użytkownik "Ayende Rahien" <Ay****@no.spam> napisał w wiadomo¶ci
news:eP*************@tk2msftngp13.phx.gbl...

"Alvin Bruney" <vapor at steaming post office> wrote in message
news:ON**************@TK2MSFTNGP09.phx.gbl...
though and not a solution to the problem. If you want to prevent users from
navigating backward you should disable the cache on both the client and

the
server thru the response object. WIth the cache disable, attempting to
navigate backward produces a page expired warning.

Response.Cache.SetCacheability(HttpCacheability.Se rverAndNoCache);


The problem is not with me as server, the problem is with me as *client*.
I want to reset IE's history when I move from one doc to another so the

user would've a context shift if he accidently click back.

Nov 15 '05 #5

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

Similar topics

2
by: lax | last post by:
How do I clear history on logout i.e when the back button is pressed after logging out I do not want the content to be displayed. Thanks -Laxmi
1
by: FluxForums | last post by:
<a href="" onclick="history.go(-1); return false;">Your Image or Tex Link</a -- FluxForum ----------------------------------------------------------------------- FluxForums's Profile:...
8
by: moondaddy | last post by:
Is there a way to make the browser move back to the previous page via code behind on the server? The effect would be the same as the user clicking on the browser's back button. Thanks. --...
29
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. The page loads up and you fill out some stuff. ...
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
2
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hi, In VS2003 I am able to clear the recent projects and recent files lists by editing the registry (although it seems that there should be a better way). However, when I look in the registry...
1
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How can I disable the back button in a web browser?...
2
by: Max | last post by:
I recently moved to ASPnet Ext 3.5 What I can't get with Ajax and History browser managemet is this: User fills some fields (dropdown and textbox) on page 1 (all are in an update panel) User...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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 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.