Strange browser behavior with HTML bindings in C # WebBrowser control
I have a WebBrowser control that I populate with HTML and then render. HTML contains multiple links pointing to anchors on the same page ...
<html>
<head></head>
<body>
<a href="#myTarget">jump</a>
<!-- further down page -->
<a name="myTarget"><h2>A heading</h2></a>
</body>
</html>
-
If I launch my application through Visual Studio and load the control, no HTML is displayed. I click on the link and it jumps to the anchor as it should.
-
Exactly if I install my application on my local machine (i.e. installed via MSI, not launched via Visual Studio). Everything expected so far.
-
However, if I install and run my application in the WinXP VM, the HTML is still displayed as expected, but now when I click on the link it behaves as if it is jumping to a new page. This new page just contains ...
...
<html>
blank#myTarget
</html>
The tags in the HTML generated by my application are exactly the same as in my example code above.
Could this be a C # issue? Is there a setting for the WebBrowser control I need to edit, perhaps?
** Update: Internet Explorer 6.0
source to share