Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3521
Simple HyperLink table
posted

OK, I am not very good at these template expressions.  I thought that this was going to be real easy, but I am struggling.

Could anyone explain what is wrong with this syntax giving that I am binging to a simple collection in the code behind with two columns called Web_Link and HTML_Desc?

<ig:WebDataGrid ID="wgLinks" runat="server" Width="80px" AutoGenerateColumns="False"
    DataKeyFields="Web_Link" StyleSetName="WestonBlue" AltItemCssClass="WestonAltBlueItem"
    ShowHeader="False">
    <Columns>
        <ig:TemplateDataField Key="Web_Link" Width="100%">
	    <ItemTemplate>
		<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="<% #DataBinder.Eval(Web_Link) %>" 
		   Text="<%# #DataBinder.Eval(HTML_Desc) %>"></asp:HyperLink>
	    </ItemTemplate>
	</ig:TemplateDataField>
    </Columns>
</ig:WebDataGrid>