WebBrowser control not navigating to links to "file://" protocol URIs
Posted
by Nick Butler
on Stack Overflow
See other posts from Stack Overflow
or by Nick Butler
Published on 2010-04-17T10:34:03Z
Indexed on
2010/04/17
10:43 UTC
Read the original article
Hit count: 299
winforms
|webbrowser
I am setting the DocumentText property to an HTML string that contains links like:
<a href="file:///D:/dir/file.html">NewPage</a>
The links are shown properly in the WebBrowser, but nothing happens when I click them. The Navigating, Navigated and DocumentComplete events do not fire - nothing seems to happen at all.
AllowNavigation is true and other links using HTTP are working.
Any ideas please?
Nick
© Stack Overflow or respective owner