SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


share|improve this question
up vote 2 down vote accepted

There is a corresponding Javascript option:

and (Microsoft.SharePoint.Client.dll or Microsoft.SharePoint.Client.Silverlight.dll)

share|improve this answer
Thanks a lot Ashish. That's exactly what I was looking for. – Stefan Hennicken Feb 10 '12 at 11:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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