Bayu Ardianto
June 26th, 2007, 07:27 AM
I'm using .NET 2.0 webbrowser control. I'm updating the content on the fly using WebBrowser::Document::OpenNew() and WebBrowser::Document::Write() method.
In the documentation, it's stated that OpenNew() will reset the document. It used about:blank page as initial state. Then we can Write() on them.
But i got problem when i need to use navigation to bookmarks over the same page.
I wrote something like this:
myWebBrowser->Document->OpenNew();
...
...
...
myWebBrowser->Document->Write("<a href="#theTarget">Go There</a>");
...
...
...
myWebBrowser->Document->Write("<a name="theTarget">Go Here</a>");
...
...
It wrote successfuly. But when i tried to click "Go There" text, it didn't navigated to "Go Here" text beneath it.
I've enabled the "AllowNavigation" property. Still not working.
Help...
In the documentation, it's stated that OpenNew() will reset the document. It used about:blank page as initial state. Then we can Write() on them.
But i got problem when i need to use navigation to bookmarks over the same page.
I wrote something like this:
myWebBrowser->Document->OpenNew();
...
...
...
myWebBrowser->Document->Write("<a href="#theTarget">Go There</a>");
...
...
...
myWebBrowser->Document->Write("<a name="theTarget">Go Here</a>");
...
...
It wrote successfuly. But when i tried to click "Go There" text, it didn't navigated to "Go Here" text beneath it.
I've enabled the "AllowNavigation" property. Still not working.
Help...