title: Passing value of directory from anchor tag using ActionLink to Controller
body: <p>I'm trying to get the value of a directory/folder from anchor tag using ActionLink to my Controller.
  I already encoded the value, but it always gives me 404 error.</p>
  <p>Link text/value of {item.Folder}: \\webserver01\business\application</p>
  <p>Value I get: %5C%5Cwebserver01%5Cbusiness%5Capplication</p>
  <p>Original</p>
  <pre><code>@Html.ActionLink(item.Folder, &quot;OpenFolder&quot;, new { id = item.Folder }, new { @class = &quot;&quot;, @target = &quot;_blank&quot; })
  </code></pre>
  <p>Second solution</p>
  <pre><code>@Html.ActionLink(item.Folder, &quot;OpenFolder&quot;, new { id = HttpUtility.UrlDecode(item.Folder) }, new { @class = &quot;&quot;, @target = &quot;_blank&quot; })
  </code></pre>
  <p>Third solution</p>
  <pre><code>@Html.ActionLink(item.Folder, &quot;OpenFolder&quot;, new { id = item.Folder.Replace(&quot;%5C&quot; &quot;\\&quot; }, new { @class = &quot;&quot;, @target = &quot;_blank&quot; })
  </code></pre>
  <p>Fourth solution - Replacing %5C to 100 then replace 100 to \\ in Controller.</p>
  <pre><code>@Html.ActionLink(item.Folder, &quot;OpenFolder&quot;, new { id = item.Folder.Replace(&quot;%5C&quot; &quot;100&quot; }, new { @class = &quot;&quot;, @target = &quot;_blank&quot; })
  </code></pre>
  <p>4 solutions giving me the value: %5C%5Cwebserver01%5Cbusiness%5Capplication</p>
  <p>Notes:</p>
  <ul>
  <li>I'm trying to open a directory in an anchor tag. It doesn't work in Chrome because of &quot;Security Issues&quot;</li>
  <li>Will use Process.Start() then open the file or directory</li>
  </ul>