Image Tag

Purpose

The Image code generation tag places a static image on the page.  The image could be an icon, logo, or any other picture file in the GIF, JPG or other browser-supported format.  When the ASPX page or ASCX control is displayed, the server-side control for this tag will return a reference to the image file specified in the Property Sheet.

An image created by Iron Speed Designer.

Note also:

Examples

<GEN:Image Name=“Masthead”/>

Application Generation Properties (Iron Speed Designer)

These properties control specific types of controls created by Iron Speed Designer.

Property

Description

Offset

Specifies the width of the image header to be removed when displaying the image.

Some images contain a binary header that must be removed when displaying the image.  When extracting an image from the database to be displayed, this header may be removed using the Offset property in conjunction with the ImageUrl property.

For example, the Offset must be changed to 78 because the Northwind database and its copy Southwind contain a 78-byte header.  This header is an OLE DB header that was placed by Microsoft.  Images stored by you may not have a header or may have a smaller or larger header.  The Offset indicates the size of the header.

..\ExportFieldValue.aspx?Table=Employees&Field=Photo&Record={0}&Offset=78

{0} is a substitution variable that is populated at run-time, in the case the record’s primary key value.

ASP.NET Properties

See ASP.NET Control Properties for details.

See Also

Code Generation Tags

Code Generation Tag Properties