7.18. Adding an Image Control

The Image control is largely self-explanatory. The ImageUrl property holds the local or remote path of the image. The AlternateText property is displayed if the image cannot be found. Under some browsers, AlternateText serves as a tool tip if the ToolTip property is not set.

Get C# Primer: A Practical Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.