<asp:DataList Width="100%" ItemStyle-horizontalalign="center" ItemStyle-Width="200px" ID="imgDataList" runat="server" RepeatColumns="3" OnItemCommand="imgDataList_ItemCommand">
<asp:Image ID="imgFavBefore" runat="server" CssClass="voteStyle" ImageUrl="~/Img Content/love.png" Style="height: 20px; width: 20px; align-content: center;" CommandName="btnFavBefore" data-index="<%#Container.ItemIndex %>" />
Protected Sub imgDataList_ItemCommand(source As Object, e As DataListCommandEventArgs) If e.CommandName = "btnFavBefore" Then ' some code here End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)