<xmod:CommandLink>
<xmod:CommandLink> renders a hyperlink that fires one or more <Command> child tags — same behavior as <xmod:CommandButton>, just rendered as a link rather than a push-button.
Sibling variants
<xmod:CommandButton>— push-button<xmod:CommandImage>— clickable image
Example
html
<xmod:Template Id="Employees">
<ListDataSource CommandText="SELECT * FROM Employees" />
<ItemTemplate>
[[FirstName]] [[LastName]] —
<xmod:CommandLink Text="View Profile">
<Command Type="Detail" Target="EmployeeProfile">
<Parameter Name="EmployeeId" Value="[[EmployeeId]]" />
</Command>
</xmod:CommandLink>
</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 commands run via async postback. Requires ID set (since v2.6) |
| Redirect | URL | . | After the commands run, redirect the user to this URL | |
| RedirectMethod | Get Post | Get | HTTP method used for the redirect |
| 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 action | |
| 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)
BackColor, BorderColor, BorderStyle, BorderWidth, Font-*, ForeColor — use CssClass or Style instead.
Child Tags
Same as <xmod:CommandButton> — required <Command Target Type Name> tags with optional <Parameter> children.