The more and more I use the GridView control, the more I end up writing my own
rather then using the DataBound columns because of the additional flexiblity you get when writing your own templates.
doesn’t offer you an
onClientClick event, so this is my work around.
Now in your GridView->Column Tag add a
If the user clicks “OK” on the popup, you will need to handle the server side processing. I tend to write my own Data Access layer to handle Selects and Deletes so for me it is pretty straight forward from here, I call a function and pass in the unique id from the database.
The End Result
Of course this won’t stop everyone from accidentally deleting users but it will stop 9/10.