How to open a local directory from html button in ASP.net MVC5?
<p>I'm not expert in Asp.net MVC5 technology, but I have a task to accomplish using it.</p>
<p>I have a local folder that I need to open from my application. this is the address of my folder: <code>file:///C:/Users/Daoud/Desktop/Stressing/</code>.</p>
<p>Now if I copy this address to the browsers (IE, Chrome, Firefox) it works just fine. However if I put it in my application on html button as below, it never works:</p>
<pre><code>&lt;a class=&quot;btn btn-primary&quot; href=&quot;file://C:\Users\Daoud\Desktop\Stressing\&quot;&gt;Stressing &amp;raquo;&lt;/a&gt;
</code></pre>
<p>It seems to me very weird, since the same address is opening when copying directly to the browser address, while it is not working when using in HTML button.</p>