Author: radha_chirthanuru | Posted on: 1/29/2010 2:22:13 AM | Views : 213

Hi All,


I am developing an application using ASP.NET with C#. inmy application i have a gridview which is bindedup with product details along with checkboxes.i.e every row in grid contains product details along with checkbox.

and i have a delete button also.
here user can delete any product by checking the checkbox and by clicking the delete button.
here before deleting the product i am displaying an alertbox as Are you sure to delete this product with 'OK' and 'CANCEL' buttons. for that i had written the button attribute in pageload as


btndelete.Attributes.Add("onclick", "if (!confirm('Are you sure you want to delete this Product?')) return false");
so that when user click on delete button this alert box will apper and if user click ok then the product get deleted.and if user click cancle it is not deleted.
up to thia it is working fine.
if user click the dele ...

Go to the complete details ...