I'm building a webpart in Visual Studio 2010 and I would like to show the files' icon开发者_StackOverflow中文版s next to its name. I thought that myFile.IconUrl would return the full url, but I only get its filename along with its extension.
Thanks in advance!
Most file type icons are kept in the 14 hive under /_layouts/images.
ie: /_layouts/images/ICBMP.GIF
精彩评论