Javascript Function in Item Template when using gridview in Asp.net

Category: ASP.NETC#.NetJAVA SCRIPT Comments: No comments

<asp:TemplateField>
<ItemStyle CssClass=”lblCenter” />
<ItemTemplate>
<asp:LinkButton ID=”lnkButton” runat=”server” OnClientClick==’<%# String.Format(“javascript:return displayDeleteWarning(\”{0}\”)”, Eval(“ClassId”).ToString()) %>’
</ItemTemplate>
</asp:TemplateField>

Leave a Reply

Your email address will not be published. Required fields are marked *

*

HTML tags are not allowed.