Alert Window in Gridview
-
Hi I want to display an alert while deleting a record in gridview if the user clicks ok then only the record has to be deleted can u help me out regarding this issue
You can simply do it in
RowDataBound
Event of GridView. where you need to find control add the JavaScript onlick for that button/link. Let me know if you need any further clarrification.Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.
-
Hi I want to display an alert while deleting a record in gridview if the user clicks ok then only the record has to be deleted can u help me out regarding this issue
function ConfirmDelete()
{
return confirm('Do you want to delete?';
}at this to onclick attribute of the delete button.
Coding C# ExciteTemplate