How to show a message yes/no before delete record?

No, you can use the partial class of the page to define the method for showing simple dialog similar to the code in this thread: