Showing File Type Icon in Data View on Sharepoint !

K

Kevin

Hi,

I am displaying a Sharepoint Services 2.0 Document Library in a Data View
Grid. One of the columns on the Library is "FileType" (ie. doc, xls, etc.).
Instead of displaying the text of the FileType, I would like to display an
Image corresponding to "FileType".

In sharepoint, the system uses DOCICON.XML to lookup and display an image
corresponding to "FileType" value. The content of DOCICON.XML is in the
format of: "<Mapping Key="doc" Value="icdoc.gif">"... I also know which
directory the icdoc.gif file is on the server.... How do I convert this
knowledge to a URL that I can display in Frontpage using Image / Hyperlink
information?

Thanks
 
S

Stefan B Rusynko

You may want to try the WSS newsgroup at
news://msnews.microsoft.com/microsoft.public.sharepoint.windowsservices




| Hi,
|
| I am displaying a Sharepoint Services 2.0 Document Library in a Data View
| Grid. One of the columns on the Library is "FileType" (ie. doc, xls, etc.).
| Instead of displaying the text of the FileType, I would like to display an
| Image corresponding to "FileType".
|
| In sharepoint, the system uses DOCICON.XML to lookup and display an image
| corresponding to "FileType" value. The content of DOCICON.XML is in the
| format of: "<Mapping Key="doc" Value="icdoc.gif">"... I also know which
| directory the icdoc.gif file is on the server.... How do I convert this
| knowledge to a URL that I can display in Frontpage using Image / Hyperlink
| information?
|
| Thanks
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top