Error in OnClientClick in C#?
- by Champ
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