C
Christopher D. Wiederspan
I've got a WebBrowser control in a C# Windows form. I build HTML on the fly
and then set it into the control using the DocumentText property of the
control. All of this works fine, except that part of the HTML that I
construct is an <A> element that links to a local file, something like this:
<A HREF="C:\Temp\SomeFile.htm" TARGET="_blank">Test</A>
When I click on the link in the browser control, nothing happens.
After some experimentation, I've learned that if I share my Temp directory
and then use this HTML instead, it works:
<A HREF="\\MyMachine\Temp\SomeFile.htm" TARGET="_blank">Test</A>
Can anybody give me some insight into this - I'm stuck without having the
ability to link up to local files.
Thanks,
Chris
and then set it into the control using the DocumentText property of the
control. All of this works fine, except that part of the HTML that I
construct is an <A> element that links to a local file, something like this:
<A HREF="C:\Temp\SomeFile.htm" TARGET="_blank">Test</A>
When I click on the link in the browser control, nothing happens.
After some experimentation, I've learned that if I share my Temp directory
and then use this HTML instead, it works:
<A HREF="\\MyMachine\Temp\SomeFile.htm" TARGET="_blank">Test</A>
Can anybody give me some insight into this - I'm stuck without having the
ability to link up to local files.
Thanks,
Chris