<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>
function imagepopup(thmsubimg) { // here how to get index of clicked image from datalist. return false; }
DataList
td
Image
index
images
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)