onclick="return AskConfirmation();" Function AskConfirmation() { var answer = confirm('Are you sure you want to delete?'); if (answer==true){ DeleteNews(1); } else { return false; } return false; }
btn.Attributes.Add("onClick","return alert('do you want to delete this record')");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)