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 need to display the images of the url typed in a custom webpart . i.e if i type url name ( , atomatically it should display the small logo of google in webpart .Anyone with this idea ? For all the url there is associated logo , like sharepoint site when typed , shows an default image.

share|improve this question
Please provide a little more detail in the question about the context of what you're trying to accomplish. Three answers and two of the three have revealed more detail about what you need. – James Love Oct 3 '11 at 10:05
yea sure , i have a spgridview which has column named MyLinks where i display items from list.There is also a button to add new links .When i click button enter url as(i.e i should see the favicon of google in gridview – Nikhil Jangle Oct 3 '11 at 16:06

make HTTPRequest to entered url and parse received HTML for FAVICON url value if any; then use extracted favicon url to display associated image

share|improve this answer

Nikhil maybe create a list and link the URL to a logo. And then use a DataView Webpart to show an image based on the URL. Hope that helps Patrick

share|improve this answer
no i need to type any site name and display the logo of the associated site i.e – Nikhil Jangle Oct 3 '11 at 8:49

Provided your custom webpart has text entry , you could enable and use ajax , so that as you type on the fly , your server code can check url and display an image based on the url , in an image control in the same webpart.

share|improve this answer
no i am using OOTB newform.aspx , where i enter my url . – Nikhil Jangle Oct 3 '11 at 8:48
up vote 0 down vote accepted

you can use spgridview properties to display the image associated with the url. gives you the images . display these in hyperlinkbound field of spgridview

share|improve this answer

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.