In one of my templates, I created a field called UploadedSitecoreFile and set the type to File. I made it so that when the user creates a new item, he can browse the media library and select the PDF file to which they want to bind.
In my code, I have the following:
Dim subItem = TryCast(e.Item.DataItem, Item) ltResourceInfoTag.Text = ltResourceInfoTag.Text & "<a href='" & subItem("UploadedSitecoreFile").ToString & "'>" & subItem("Name").ToString & "</a>"
Can someone tell me the correct way to link to a multimedia element?
Thanks CR Junk
source share