Files are opened by browsers using the URI format: "file:///" http://en.wikipedia.org/wiki/File_URI_scheme
On Aug 4, 12:21 pm, Iain <[email protected]> wrote: > Hi All > > Hope you can help as I am stumped. > > I have a web page developed using Visual Studio 2008/C#. > .Net install level on the Web server is set to 3.5 SP1. > > The page reads a directory (at the moment it is reading the web server > c drive) and displays the contents of the directory in a treeview > component. No problem there so far. > > My problem is that the documents will not open in either Firefox or > More importantly IE (our default). However that actions are different > in the browsers. > > In firefox The error > > "Firefox doesn't know how to open this address, because the protocol > (c) isn't associated with any program" > > is displayed. > > In IE the file just does not open. Nothing appears to happen. > > A sample of the links on a tree node are > > c:\temp\Websites.txt > c:\OpenManage\docs\en\OpenManage_IS_UG\instlx10.jpg > > I can normally open .txt, .jpg and other file types using either > browser. > > My code is listed below. > > Thanks in advance for Any help which will be most gratefully received. > > Iain >
