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 / .NET Framework / General / November 2004

Tip: Looking for answers? Try searching our database.

Webbrowser - What fires before each page is downloaded?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim Hubbard - 30 Nov 2004 01:43 GMT
According to Visual Studio 2003 Help files  "In Internet Explorer 6 or
later, the BeforeNavigate2 event fires only before the first navigation
made in code.  It does not fire when a user clicks a link on a Web page."

If I want to intercept each webpage before it is rendered in the webbrowser
control (to add or remove code), where would I do so in the webbrowser
control?

Any suggestions?
C-Services Holland b.v. - 30 Nov 2004 09:27 GMT
> According to Visual Studio 2003 Help files  "In Internet Explorer 6 or
> later, the BeforeNavigate2 event fires only before the first navigation
[quoted text clipped - 5 lines]
>
> Any suggestions?

This makes me wonder what you are trying to achieve. Injecting HTML code
into a requested page? I.E. Adding banners/spyware?

Maybe I'm too paranoid :)

Signature

Rinze van Huizen
C-Services Holland b.v.

Jim Hubbard - 30 Nov 2004 15:02 GMT
You are too paranoid.  I want to REMOVE banners, spyware, authorized ActiveX
controls, etc. .

Microsoft's 4 security zones are not flexible enough.  You have no granular
security control over each URL you visit.

I want to intercept the HTML before the webbrowser executes (displays) it
and remove potential problems or unwanted objects for the user.

>> According to Visual Studio 2003 Help files  "In Internet Explorer 6 or
>> later, the BeforeNavigate2 event fires only before the first navigation
[quoted text clipped - 10 lines]
>
> Maybe I'm too paranoid :)
Cor Ligthert - 30 Nov 2004 10:49 GMT
Jim,

Is this not a question of simple debugging.

There are much events however not that much.
Even without debugging does setting simple a messagebox in every event tells
you what you want to know.

Just my thought,

Cor

"Jim Hubbard" <reply@groups.please>

> According to Visual Studio 2003 Help files  "In Internet Explorer 6 or
> later, the BeforeNavigate2 event fires only before the first navigation
[quoted text clipped - 5 lines]
>
> Any suggestions?

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.