我希望在删除记录之前向用户填充一个弹出窗口我尝试过OnClientClick和类以使用 JavaScript/jQuery 处理它但没有成功
错误
Type 'System.Web.UI.WebControls.HyperLinkField' does not have a public property named 'OnClientClick'.
控制
<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" />
编辑:还尝试添加一个 类(用于使用 jquery 处理它)但没有成功