本人用了 ASP.NET 很久,經常用 GridView 做一些簡單的檔案維護 (File Maintaince), 在 Gridview 中的 Delete button。通常我會再加 JavaScript Confirm ('Do you really want to delete this record?") in OnClientClick
如果用戶按 Cancel button, DeleteCommand 不會 triiger. 如果用戶按 Confirm button, DeleteCommand 會 triiger, Record will be deleted.