1

I am presenting all paths from some folder on the webpage and for files resisting but unfortunetly being on webpage and clinking on that links files are not opening, just nothing happened.

This is how I am doing loop to see all files:

@For Each item As String In Model
        @<a href="file:///@item">@IO.Path.GetFileName(item)</a>@<br>
 Next

Then all filenames are poping up, when I move my mouse on some of them I see:

file:///D:/somefolder/file.txt

But when I am clicking nothing is happening.

Maxim Pontyushenko
  • 2,983
  • 2
  • 25
  • 36
Arie
  • 3,041
  • 7
  • 32
  • 63
  • This might be seen as a security issue by the browser since it will try to open up the file on the local machine not the server. – the_lotus Jul 16 '15 at 12:26
  • See BalusC's answer here: http://stackoverflow.com/questions/5317834/workaround-for-href-file-in-firefox – KevD Jul 16 '15 at 12:51
  • 1
    Do those paths represent files on the *client*, or files on the *server*? – Richard Deeming Jul 16 '15 at 14:50
  • Those files are placed on the server where i am debugging my program. What can i do this to work? – Arie Jul 17 '15 at 19:04

0 Answers0