I've created a web part which display a thumbnail image. I'm using the following code:
Image thumbnail = new
thumbnail.Width = 82;
thumbnail.Height = 65;
thumbnail.ImageUrl = spItems["Thumbnail"
//Create new cell for image
TableCell imageCell = new
imageCell.CssClass = "thumbnail"
But when it actually renders its pulling the correct source, followed by either the source repeated, or some garbage. Like the source will be "http://mydev/PublishingImages/myicon.jpg, http://mydev/PublishingImages/myicon.jpg"
which obviously causes the image to not render. Another example is "http://mydev/PublishingImages/myicon.jpg, %20MyIcon"
I think it has to do with the type of column I made? I used the URL or Picture column type. Maybe I should just use a single line of text? I wonder if it is grabbing something from the description field?
Any thoughts? Am I doing this wrong?
View Complete Post