Showing different icons in a repeater

I have a task to create a segment on the Home Page or our Portal that will show the logged in user the last 5 documents that they shared with someone else.  In addition they want to be able to show the correct icon based on the document type.  

The images will be stored on the local hard drive (see attached).  


I will return the documenttype in my query like so:

documenttype
.doc
.pdf
.doc
.docx
.docx

I am not using standard ASP.Net, I have to work with a third party framework that sits on top of ASP.Net and the only way that I can apply logic is through Transformations which is basically the markup and through javascript/jquery.  I can also create custom functions to call from the TransformationsImages
Should I try to store the images in SQL Server and retrieve the images.  That has always been so cumbersome or just what should I do?

Any help will be appreciated.
sherbug1015Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
Storing images in SQL Server is not a preferred practice for me.  I would prefer to store the file in the file system, and then have logic to determine the file name to show.  Since I don't know this 3rd party software, it would be difficult to suggest anything specific to solve your problem.
sherbug1015Author Commented:
Thank you I was able to solve it with markup in the transformation.

<img src='/App_Themes/IntranetPortalRaceTrac/Images/<%# ((string)Eval("DocumentType")).Replace(".","") %>.png' style="width: 20%; height: 20%" alt="icon" />


The DocumentType is coming from my query so it is able to find the image in the Images folder.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sherbug1015Author Commented:
I was able to solve it myself with simple HTML markup

<img src='/App_Themes/IntranetPortalRaceTrac/Images/<%# ((string)Eval("DocumentType")).Replace(".","") %>.png' style="width: 20%; height: 20%" alt="icon" />

The DocumentType is coming from the query so it evaluates the document tye (doc, pdf, txt, etc) and find the correct image.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.