How to add confirmation box in C#?
You need to capture the result: var result = MessageBox. Show(...); if (result == DialogResult. Yes) this.
How to display confirmation box in asp net C#?
This can be done using the "alert" method. Use the alert method in <script> </script> tags by using a function with a method name. Call this function on client click event in a Button as follows in the following code. This type of Message Box is used to give a warning to the user.