hi friend,
see i have solution for u.
just try this.
Design your grid mentioned as below
<asp:templatefield showheader="False" xmlns:asp="#unknown">
<itemtemplate>
<asp:linkbutton id="lnkBtn" commandname="Delete" text="Delete" onclientclick="return ConfirmDelete();">
runat="server">Delete</asp:linkbutton>
</itemtemplate>
</asp:templatefield>
Add this java script into your aspx form
function ConfirmDelete()
{
var Delet_Confirm= confirm("Do you really want to delete this record ?");
if (Delet_Confirm== true)
{
return true;
}
else
{
return false;
}
}
if you are not using template field, you can write same java script into
row command event of grid into .cs file by define <javascript> tag.
Thanks,
Mahesh Patel