The below code attach a javascript confirmation dialog box on the click event of a link button. This code is applicable in asp.net 2.0 and above.
<asp :linkbutton id="btnDelete" runat="server" causesvalidation="false" commandname="Delete" onclientclick="return confirm('Are you want to delete this item?')" text = "Delete" />
0 comments:
Post a Comment