Click here to Skip to main content
15,666,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have Folder Name and Folder Path stored in Database, and I want to explore files if I click on a link.

FolderPath contains:

if I paste this link in Browser and press enter it works, but if I use to click from my View if doesn't.

Please help.

What I have tried:

<a href="@Model.FolderPath" class="fa fa-folder" target="_blank">
                @Html.DisplayFor(model => model.FolderName)
Updated 27-Jul-20 5:06am
Richard MacCutchan 27-Jul-20 10:45am    
So what does happen?

1 solution

nothing, it does nothing when I click on this link
Share this answer
Richard MacCutchan 27-Jul-20 11:36am    
I do not think the browser is allowed to access local files.
nyt1972 27-Jul-20 13:22pm    
The browser allow bco when I paste link in browser it do work.
Richard MacCutchan 27-Jul-20 13:59pm    
That is a different situation.
Richard Deeming 27-Jul-20 11:54am    
If you want to reply to a comment, click the "Reply" button next to the comment. Do not post your reply as a "solution" to your question.
nyt1972 27-Jul-20 13:22pm    
ok thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900