How to display an image in a SharePoint 2010 Web Part
Add SharePoint "Images" mapped folder to the project in Visual Studio.
Create a
WEB-PART-NAME
folder inside (to keep related images together and not overwrite some other image by accident).Place the image in this folder.
Use the following URL:
/_layouts/images/WEB-PART-NAME/IMAGE-FILENAME.png
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, 2022Comments
-
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.