solution is simple...
<asp:Button ID="DeleteButton" runat="server" OnClientClick="return confirm('Are you sure you want to delete this ?');" Font-Bold="True" Font-Size="Large" ForeColor="Blue"
OnClick="DeleteButton_Click" Text="Delete" ToolTip="Click here to Delete this....."
ValidationGroup="MyPersonal" Width="98px" />
and in DeleteButton_Click event write your deleting code in C#..
i.e.,
protected void DeleteButton_Click(object sender,eventargs e)
{
write your deleting code here
}
it will definitely work..
if the user clicks ok then the delete action will be done
if he clicks cancel nothing will be done...
try this...