S
Stan SR
Hi,
I use a repeater that displays images.
I need to add dynamically a jscript function on each image that use the
index value of the repeater
<asp:Repeater ID="ph" runat="server" DataSourceID="myDataSource">
<ItemTemplate>
<asp:HyperLink runat="server" ID="link"
NavigateUrl="javascript:Slides(INDEXREPEATER)">
<asp:Image runat="server" ID="img" ImageUrl='<%#
Eval("myPic") %>' />
</ItemTemplate>
</asp:Repeater>
How to replace the INDEXREPEATER by the current index ?
Thanks in advance
Stan
I use a repeater that displays images.
I need to add dynamically a jscript function on each image that use the
index value of the repeater
<asp:Repeater ID="ph" runat="server" DataSourceID="myDataSource">
<ItemTemplate>
<asp:HyperLink runat="server" ID="link"
NavigateUrl="javascript:Slides(INDEXREPEATER)">
<asp:Image runat="server" ID="img" ImageUrl='<%#
Eval("myPic") %>' />
</ItemTemplate>
</asp:Repeater>
How to replace the INDEXREPEATER by the current index ?
Thanks in advance
Stan