CrmHyperLink is a custom web control that will render a hyperlink to a web page from CRM.

Adding CrmHyperLink to a Page Template

The following control declaration can be added to an ASP.NET page template in the Visual Studio Web Application project.

<crm:CrmHyperLink ID="LoginLink" SiteMarkerName="Login" Text="<%$ Snippet: links/login, Login %>" runat="server"></crm:CrmHyperLink>

Output Rendered 

The resulting markup rendered on the page will be as follows

<a href="/login/" id="LoginLink">Login</a>

Control Properties

The CrmHyperLink control has several properties that can be specified to modify the behavior.

SiteMarkerName The name of a site marker record that is associated with a particular web page that should be retrieved to determine the URL to assign to the NavigateUrl property of the HyperLink control.
QueryString  The QueryString to be appended to the URL returned by the web page associated with the site marker.
PortalName The portal context configuration name that the control binds to.  Default value is unassigned.