<xmod:DeleteLink>
<xmod:DeleteLink> renders a hyperlink that deletes the current row — same behavior as <xmod:DeleteButton>, just rendered as a link rather than a push-button.
Sibling variants
<xmod:DeleteButton>— push-button<xmod:DeleteImage>— clickable image
Example
html
<xmod:Template Id="Employees">
<ListDataSource CommandText="SELECT * FROM Employees" />
<DeleteCommand CommandText="DELETE FROM Employees WHERE EmployeeId = @EmpID">
<Parameter Name="EmployeeId" Alias="EmpID" />
</DeleteCommand>
<ItemTemplate>
<strong>[[FirstName]] [[LastName]]</strong>
<xmod:DeleteLink Text="Delete"
OnClientClick="return confirm('Are you sure you want to delete this employee?');">
<Parameter Name="EmployeeId" Alias="EmpID" Value="[[EmployeeId]]" DataType="Int32" />
</xmod:DeleteLink>
</ItemTemplate>
</xmod:Template>Properties
| Property | Values | Default | Description |
|---|---|---|---|
| ID | string | Unique identifier for the link | |
| Text | string | Caption displayed on the link | |
| Ajax | True False | False | When True, the delete runs via async postback. Requires ID set (since v2.6) |
| CssClass | string | CSS class name(s) | |
| Style | string | Inline CSS | |
| Width | size | Width of the link | |
| Height | size | Height of the link | |
| ToolTip | string | Hover tooltip | |
| Visible | True False | True | Shows or hides the link |
| OnClientClick | JavaScript | Client-side script to run on click. Returning false cancels the delete | |
| AccessKey | string | Keyboard shortcut character | |
| Enabled | True False | True | When False, the link is disabled |
| TabIndex | integer | Tab order for keyboard navigation |
Deprecated Properties (styling)
Same set as <xmod:DeleteButton> — BackColor, BorderColor, BorderStyle, BorderWidth, Font-*, ForeColor. Use CssClass or Style instead.
Child Tags
Same as <xmod:DeleteButton> — required <Parameter Name Alias Value DataType> tags supply values for the parent's <DeleteCommand>.