In ASP.Net you can popup a confirm window easily.  See 
this and 
this.  How to do the same thing in windows form?  Here is the easiliest way I know:
if (MessageBox.Show("Are you sure you want to delete it?","Confirm", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
 //Your code here.
}
 
No comments:
Post a Comment