Display Confirmation Message on GridView Deleting This demo describes the different approach to display a confirmation message when deleting a row in GridView and pass the id of the item to the confirmation message. Confirmation means a user is asked first if he/she wanted to delete a record by choosing an option (OK and CANCEL). In this demo, we use the JavaScript confirm function for displaying the confirmation message. Now let’s create our JavaScript confirm function. To do this switch to ASPX source and add the following code block within the <head> tag like: < head runat ="server"> < title > GridView Data Manipulation </ title > < script type ="text/javascript" language ="javascript"> function ConfirmOnDelete(item) { if (confirm( ...
ASP.NET || Javascript || Dataobject || Code Solutions Free Open Source code for Developers