I would like to display a hyperlink to uploaded files in my uploaded files repeater. I'm currently throwing up a link to the physical path with this:
<td><
asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="<%#DirectCast(Container.DataItem, UploadedFile).LocationInfo(FileUploadStreamProvider.FileNameKey)%>"><%#DirectCast(Container.DataItem, UploadedFile).ClientName%></asp:HyperLink></td>
Can anyone tell me the easiest way to do this? I've tried wrapping this code up in some string functions to replace the plysical with the virtual but have had no joy...
Oh and if it matters I'm using PrefixFolderFileNameGenerator..
Any help much appreciated
Thanks