<xmod:AddLink>
<xmod:AddLink> renders a hyperlink that opens the AddForm — same behavior as <xmod:AddButton>, just rendered as a link rather than a push-button.
Sibling variants
<xmod:AddButton>— push-button<xmod:AddImage>— clickable image
Example
html
<xmod:Template Id="Employees">
<ListDataSource CommandText="SELECT * FROM Employees WHERE DepartmentId = @DepartmentId">
<Parameter Name="DepartmentId" Alias="DepartmentId" />
</ListDataSource>
<ItemTemplate>
<strong>[[FirstName]] [[LastName]]</strong>
</ItemTemplate>
<FooterTemplate>
<xmod:AddLink Text="New Employee" />
</FooterTemplate>
</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, opens the AddForm via async postback. Requires ID set (since v2.6) |
| Form | form name | Override the configured AddForm with a different form (since v4.7) | |
| 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)
| Property | Description |
|---|---|
| BackColor / BorderColor / BorderStyle / BorderWidth | Use CssClass or Style instead |
| Font-Bold / Font-Italic / Font-Names / Font-Overline / Font-Size / Font-Strikeout / Font-Underline | Use CssClass instead |
| ForeColor | Use CssClass or Style instead |
Child Tags
Same as <xmod:AddButton> — optional <Parameter Name Value DataType> tags pass values into the AddForm's <SelectCommand>.
See <xmod:AddButton> for full behavior details.