<asp:Repeater ID="rptAlbum" runat="server"> <ItemTemplate> <a runat="server" href="<%# DataBinder.Eval("key")) %>" rel='lightbox[<%#Eval("value") %>]'> <asp:Image ID="Image1" runat="server" ImageUrl='<%#Eval("key") %>' Width="30px" Height="30px"/> </a> </ItemTemplate> </asp:Repeater>
I try many ways to catch the dictionary key in my href, but always give me the answer that the server tag is not formed or the string does not have the key property ..: s
If someone can help me, it will be very helpful :)
Best wishes
hisil source share