I have return one Javascript function which asks the confirm message to the user.
The JavaScript functions is
function ConfirmOnDelete() {
if (confirm(Are you sure to delete?))
return true;
else
return false;
and GridView is like below:
<asp:CommandField HeaderText=Delete ShowDeleteButton=True />
Here I want to call the JavaScript function when user clicking the Delete in the GridView Command Field.
How to call this?