Skip to content

Instantly share code, notes, and snippets.

@adamhopkinson
Last active December 31, 2015 18:28
Show Gist options
  • Save adamhopkinson/8026627 to your computer and use it in GitHub Desktop.
Save adamhopkinson/8026627 to your computer and use it in GitHub Desktop.
Getting a Sitecore item url in a C# repeater
<ul>
<asp:Repeater ID="rpFooterDestinations" runat="server">
<ItemTemplate>
<li>
<a href="<%# Sitecore.Links.LinkManager.GetItemUrl(
(Sitecore.Data.Items.Item) Container.DataItem
) %>"><%# Eval("DisplayName") %></a>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment