更新时间:2023-02-08 18:44:36
看看:http://mvolo.com/blogs/serverside/archive/2007/01/11/Display-$p$ptty-file-icons-in-your-ASP.NET-applications-with-IconHandler.aspx
这不是最干净的解决方案,但它的工作原理。否则,试图让你的手的图标即是基于MIME类型或文件扩展名的库。
It's not the cleanest solution but it works. Otherwise, try to get your hands on a library of Icons that's based on mime type or file extension.