I have the following image button on the GridView and I want to call the OnClientClick to call javascript method with passing a parameter. I am getting Server Tag is not well formed error. I tried changing double quotes to single quote etc, still the same issue.
OnClientClick="return ConfirmOnDelete('<%#Eval("Name")%>');"
<asp:ImageButton ID="imgDelete" CommandName="Delete" ImageUrl="~/images/fbclose.png" AlternateText="Delete" runat="server" OnClientClick="return ConfirmOnDelete('<%#Eval("Name")%>');"/>