My Technical Notes

Tuesday, 9 April 2013

Databinding the Text within an asp:DynamicHyperLink

In order to do this, we need to use the <%# ... %> syntax:


<asp:DynamicHyperLink ID="DynamicHyperLink1" runat="server" Text='<%# SplitCamelCase( Eval("DisplayName") as string ) %>'></asp:DynamicHyperLink>

No comments: