I'm using client object model in a custom webpart. What I'm looking for is a way to get the file-icons that represent the doc types of the files in a document library.

Probably I need a solution similar to SPUtility.MapToIcon but in client object model.

Thanks in advance


1 Answer 1


There is a corresponding Javascript option:


and http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.web.maptoicon.aspx (Microsoft.SharePoint.Client.dll or Microsoft.SharePoint.Client.Silverlight.dll)

  • Thanks a lot Ashish. That's exactly what I was looking for. Feb 10, 2012 at 11:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.