Dynamics CRM 2011 Portal Development – CrmHyperLink

Dynamics CRM 2011 Portal Development

Use the CrmHyperLink control to create a link to another Web page within your CRM portal. The “URL” is consists of “partial url property” of “Web Page entity”. The CrmHyperLink control is typically displayed as “text” specified by the “name” property of “Web Page” entity.

Microsoft.Xrm.Portal.Web.UI.WebControls.CrmHyperLink inherent from System.Web.UI.WebControls.HyperLink and expose three extra properties; PortalName, SiteMarkerName and QueryString.

PortalName  is checked against configured portals in the web.config file.

 <add name="Customer Portal"/>

This value should be the value of Name attribute (adx_name) of Website entity (adx_website) contained in portalbase solution.

Assume we have the following website created in CRM

two portals configured in web.config for each website inside CRM

 <add name="Customer Portal"/>
 <add name="Test Portal"/>

SiteMarkerName is the value of Name attribute (adx_name) of Site Marker entity (adx_sitemarker) contained in portalbase solution.

QueryString value will be appended to the rendered url as query string.

The Web Page (adx_webpage) entity (related to the Site Marker entity (adx_sitemarker) with the name specified) will be retrieved from CRM first, and the Partial Url (adx_partialurl) attribute value will be used to construct the URL.


The following markup

<crm:CrmHyperLink ID="CrmHyperLink1" runat="server" SiteMarkerName="KB Article" />

will be rendered as

<a id="Content_CrmHyperLink1" href="/knowledge-base/article">KB Article</a>



2 comments on “Dynamics CRM 2011 Portal Development – CrmHyperLink

  1. Pingback: Dynamics CRM 2011 Portal Development | Zhongchen Zhou's Blog

  2. Hello! I hope you don’t mind but I decided to post your weblog: https://zhongchenzhou.wordpress.com/2012/05/07/dynamics-crm-2011-portal-development-crmhyperlink/ to my internet directory. I used, “Dynamics CRM 2011 Portal Development – CrmHyperLink | Zhongchen Zhou’s Blog” as your web site title. I hope this is okay with you. In case you’d like me to change the title or remove it entirely, email me at juliacrumpton@yahoo.de. Thank you so much.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s