I was facing the same problem and this is my implementation in Asp.Net and Jquery. I have a grid-view and an Edit button inside the Item Template. I'm making an ajax function call. You need to use a delegate.
<asp:GridView ID="GrdRegPeople" runat="server" class="display table table-hover table-condensed" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" ClientIDMode="Static" OnPageIndexChanging="GrdRegPeople_PageIndexChanging">
<Columns>
<asp:BoundField ItemStyle-Width="50px" DataField="Reg_id" HeaderText="Reg.ID">
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:BoundField ItemStyle-Width="200px" DataField="Name" HeaderText="Name">
<ItemStyle Width="200px" />
</asp:BoundField>
<asp:BoundField ItemStyle-Width="50px" DataField="Reg_email" HeaderText="Email">
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:BoundField ItemStyle-Width="50px" DataField="CompanyName" HeaderText="Company">
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:BoundField ItemStyle-Width="50px" DataField="Reg_position" HeaderText="Position">
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:TemplateField ShowHeader="false">
<ItemTemplate>
<asp:Button ID="Button1" class="btn btn-primary activeButton" ClientIDMode="Static" runat="server" Text="Edit" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle HorizontalAlign="Right" />
$("body").delegate("#GrdRegPeople .activeButton", "click", function (e) {
//Write Your Code here..
}
});