Hi,


I have add an onclick attribute in my Delete linkbutton in my datagrid like below:

Code:
l.Attributes.Add("onclick", "return confirm('Are you sure you want to delete this record?')")
If the user clicks "Cancel", I want to assign a variable to nothing. How can I do it in the code above.

Thanks heaps.