Set the NavigateUrl of a ImageMap in Repeater
-
Hi, I'd like to know how to set the NavigateUrl of a ImageMap in Repeater This code returns an error. Thank you.
<asp:Repeater ID="RepeaterOthers" runat="server">
<ItemTemplate>
<asp:ImageMap ID="ImageOthersBack" Height="145px" Width="200px" HotSpotMode="Navigate" runat="server" ImageUrl='<%# String.Format("~/images/{0}.png", Container.DataItem) %>'>
<asp:RectangleHotSpot Top="96" Bottom="128" Left="28" Right="175" NavigateUrl='<%# String.Format("~/Link.aspx?Id={0}", Container.DataItem) %>' />
</asp:ImageMap>
</ItemTemplate>
</asp:Repeater> -
Hi, I'd like to know how to set the NavigateUrl of a ImageMap in Repeater This code returns an error. Thank you.
<asp:Repeater ID="RepeaterOthers" runat="server">
<ItemTemplate>
<asp:ImageMap ID="ImageOthersBack" Height="145px" Width="200px" HotSpotMode="Navigate" runat="server" ImageUrl='<%# String.Format("~/images/{0}.png", Container.DataItem) %>'>
<asp:RectangleHotSpot Top="96" Bottom="128" Left="28" Right="175" NavigateUrl='<%# String.Format("~/Link.aspx?Id={0}", Container.DataItem) %>' />
</asp:ImageMap>
</ItemTemplate>
</asp:Repeater>Then post here error message too? because other person don't know how your are binding in code and with which column? so post full error message.
Parwej Ahamad