<xmod:DetailLink>
<xmod:DetailLink> renders a hyperlink that switches the parent template to detail view — same behavior as <xmod:DetailButton>, just rendered as a link rather than a push-button.
Sibling variants
<xmod:DetailButton>— push-button<xmod:DetailImage>— clickable image
Example
html
<xmod:Template Id="Employees">
<ListDataSource CommandText="SELECT EmployeeId, FirstName, LastName FROM Employees" />
<DetailDataSource CommandText="SELECT * FROM Employees WHERE EmployeeId = @EmployeeId">
<Parameter Name="EmployeeId" />
</DetailDataSource>
<ItemTemplate>
[[FirstName]] [[LastName]] —
<xmod:DetailLink Text="View Profile">
<Parameter Name="EmployeeId" Value="[[EmployeeId]]" DataType="Int32" />
</xmod:DetailLink>
</ItemTemplate>
<DetailTemplate>
<h1>[[FirstName]] [[LastName]]</h1>
</DetailTemplate>
</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, switches to detail view 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 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)
Same set as <xmod:DetailButton> — BackColor, BorderColor, BorderStyle, BorderWidth, Font-*, ForeColor. Use CssClass or Style instead.
Child Tags
Same as <xmod:DetailButton> — required <Parameter Name Value DataType> tags supply values for the parent's <DetailDataSource>.