<asp:GridView ID="gvExample" runat="server" AutoGenerateColumns="false"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:ImageButton runat="server" CommandName="update" ImageUrl="../../common/images/pencil.gif" ID="Imagebutton1" OnClientClick='<%# String.Format("EditBankAccount(\"{0}\");", Eval("BankAccountID")) %>' OnClick="ImgBankAccountsDGEdit_Click"></asp:ImageButton> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>
Syntax:
OnClientClick='<%# String.Format("EditBankAccount(\"{0}\");", Eval("BankAccountID")) %>'
No comments:
Post a Comment