I have a piece of code that is like
string.Format("<a href='{0}' class='hidden'>{0}</a>", Path.Combine(filePathPrefix , string.Join("-", new string[] { fOrgName, fCatName, f.filename })))
and meant to return an a
tag that a user can click on to get a file. The only problem is that string I'm building for the href
does not work as a link. It is something like
c:\users\me\documents\visual studio 2013\Projects\myproj\myproj\Assets\someorg-somecat-somepic.png
which doesn't work as a clickable link, brings to an about:blank
page if you click on it. However, if I paste the link into my browser and make the request then it changes to
file:///C:/users/me/documents/visual%20studio%202013/Projects/mypoj/myproj/Assets/someorg-somecat-somepic.png
and brings up the asset properly. That means I need some way getting the link in that form while its on the page. Is this possible? If so, what C# class(es) and method(s) do I need?