I am currently using a media files data source and basic repeater to display files uploaded to a media library in Kentico 10. I would like to display the icons for the matching file type similar to what is obtainable with
<%# GetAttachmentIcon("FileAttachment")%>
for CMS.Files and Attachments.
Please use the GetFileIcon method instead:
GetFileIcon returns an <i> tag displaying a font icon that represents the MIME type of the specified file extension.
<i>
<%# GetFileIcon(Eval("FileExtension")) %>
Please, sign in to be able to submit a new answer.