It has been said that a picture is worth a thousand words. It is common to add to a page an accompanying picture of its subject, which could take the form of a picture of a product, employees, a place or almost anything you can think of. Usually, the web designer would designate a place on the page for the image to be displayed. For example, a news article may display a picture of the story's subject next to its abstract.
You could use an HtmlPlaceholder
to store the image. However, one major advantage of using an ImagePlaceholder
is that as a developer, you get to control the size of the image. Images uploaded by authors would be automatically resized to fit the width and height specified.
You also ensure that authors do not mix text together with the image, thus making it easier to extract the image later for use on other pages.
The ImagePlaceholder
is similar to the AttachmentPlaceholder
with one major exception—
it holds a link to an image instead of a file. And like...