Posted on: 3/12/2015 9:32:11 AM | Views : 718

Hello,
<asp:DataList RepeatColumns="3" ID="repdetails" runat="server"> <ItemTemplate> <table><tr><td style="border:1px solid #bfbfbf; width:50px;"> <asp:ImageButton ID="imgbtnid" runat="server" Width="40" OnClientClick="return imagepopup(this.src);" Height="40" ImageUrl='<%# Eval("ivtf_docs_id", "../Imagenew.ashx?styleid={0}")%>'/> </td></tr></table> </ItemTemplate> </asp:DataList>
when the page shows on browser, i have list of of images in datalist. Now i need to get index of clicked image from datalist. if i click first image, it should get index 0 , if it is second image, index should be 1 and etc..
function imagepopup(thmsubimg) { // here how to get index of clicked image from datalist. return false; }

...

Go to the complete details ...