Error in OnClientClick in C#?
Posted
by
Champ
on Stack Overflow
See other posts from Stack Overflow
or by Champ
Published on 2012-09-27T15:05:01Z
Indexed on
2012/09/27
15:37 UTC
Read the original article
Hit count: 196
I want a popup to be populated to user before deleting the record I have tried OnClientClick and class to handle it with JavaScript/jQuery but with no success
ERROR
Type 'System.Web.UI.WebControls.HyperLinkField' does not have a public property named 'OnClientClick'.
Control
<asp:HyperLinkField OnClientClick="return confirm('Are you sure you would like to delete the selected landing page?')" datanavigateurlfields="id" datanavigateurlformatstring="ViewLandingPages.aspx?id={0}&delete=yes" HeaderText="Delete" Text="Delete" />
EDIT : also tried adding a class (for handling it with jquery ) but with no success
© Stack Overflow or respective owner