Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / January 2008

Tip: Looking for answers? Try searching our database.

Clear WebBrowser history.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cameron Taylor - 08 Jan 2008 11:15 GMT
Is there any way to programmatically purge the forward/back history of a .NET
2.0 embedded WebBrowser control?
Misbah Arefin - 12 Jan 2008 06:49 GMT
A WebBrowser control is just an embedded IE window and any/all settings in IE
are honored just the same including history.

If what you want to do is disable the back button then try the following
script in the head section of your pages

<script language="JavaScript">
<!--
 javascript:window.history.forward(1);
//-->
</script>

the above gets the job done more or less but its far from a perfect
solution. As far as i know you cannot disable the back button in IE but there
are ways to tricking it to act differently as by the script above.

Also see:
http://www.4guysfromrolla.com/webtech/111500-1.shtml
http://answers.google.com/answers/threadview?id=574062

Signature

Misbah Arefin

> Is there any way to programmatically purge the forward/back history of a .NET
> 2.0 embedded WebBrowser control?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.