Thanks Roman, it is working as you suggest. The only drawback is, once the document es evaluated by kentico, it stills generates the direct link on the URL, so mi link is
<a target="_blank" href="~/getattachment/<%# (Eval("AttachmentGUID")) %>/<%# Eval("NodeAlias") %>.aspx">
<%# Eval("AttachmentName",true) %>
wich generates the following link:
<a target="_blank" href="/getattachment/66701710-dd57-4426-a5c6-2b3cd058af67/MyFile.aspx">
MyFile.pdf
</a>
But once I click this link, the url again shows :
http://shsjdevweb15:8025/CORPO/files/66/66701710-dd57-4426-a5c6-2b3cd058af67.pdf
And then you have the direct link again !
Is it possible to keep the generated URL without being converted to the direct path ?
Thanks !