How to display an image in a SharePoint 2010 Web Part

13,988
  1. Add SharePoint "Images" mapped folder to the project in Visual Studio. enter image description here

  2. Create a WEB-PART-NAME folder inside (to keep related images together and not overwrite some other image by accident).

  3. Place the image in this folder.

  4. Use the following URL: /_layouts/images/WEB-PART-NAME/IMAGE-FILENAME.png

Share:
13,988
Brian Roisentul
Author by

Brian Roisentul

I'm a student of Computer Engineering at the University of Buenos Aires(UBA) and I'm the leader of a small company in Buenos Aires, Argentina called DB Software Solutions, that have started two years ago along with previous work mates. We have a team of professionals dedicated to develop and design both web and desktop applications for companies and particulars. We have now several clients from USA, Australia, Spain, Israel and Argentina. Also, we're developing our own products now to generate more work based on this initiative. For further information we invite you to visit our website.

Updated on June 04, 2022

Comments

  • Brian Roisentul
    Brian Roisentul almost 2 years

    I would like to know how to display a local image in my SharePoint 2010 Web Part. I don't really know which url to write in the css.