<xmod:EditImage>
<xmod:EditImage> renders a clickable image that opens the EditForm — same behavior as <xmod:EditButton>, just rendered as an image rather than a push-button.
Sibling variants
<xmod:EditButton>— push-button<xmod:EditLink>— hyperlink
Example
html
<xmod:Template Id="Employees">
<ListDataSource CommandText="SELECT * FROM Employees" />
<ItemTemplate>
<strong>[[FirstName]] [[LastName]]</strong>
<xmod:EditImage AlternateText="Edit Employee" ImageUrl="~/images/edit.gif">
<Parameter Name="EmployeeId" Value="[[EmployeeId]]" DataType="Int32" />
</xmod:EditImage>
</ItemTemplate>
</xmod:Template>Properties
| Property | Values | Default | Description |
|---|---|---|---|
| ID | string | Unique identifier for the image button | |
| ImageUrl | URL | Path to the image file. Tilde (~) supported | |
| AlternateText | string | Alt text for screen readers and search engines | |
| ImageAlign | NotSet Left Right Baseline Top Middle Bottom AbsBottom AbsMiddle TextTop | NotSet | Image alignment relative to surrounding content |
| Ajax | True False | False | When True, opens the EditForm via async postback. Requires ID set (since v2.6) |
| Form | form name | Override the configured EditForm with a different form (since v4.7) | |
| CssClass | string | CSS class name(s) | |
| Style | string | Inline CSS | |
| Width | size | Width of the image | |
| Height | size | Height of the image | |
| ToolTip | string | Hover tooltip | |
| Visible | True False | True | Shows or hides the control |
| OnClientClick | JavaScript | Client-side script to run on click. Returning false cancels the action | |
| AccessKey | string | Keyboard shortcut character | |
| Enabled | True False | True | When False, the control is disabled |
| TabIndex | integer | Tab order for keyboard navigation |
Deprecated Properties (styling)
Same set as <xmod:EditButton> — BackColor, BorderColor, BorderStyle, BorderWidth, Font-*, ForeColor. Use CssClass or Style instead.
Child Tags
Same as <xmod:EditButton> — required <Parameter Name Value DataType> tags supply values for the EditForm's <SelectCommand>.