h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Use dialogResult in C#.net

Click Event
 DialogResult dr = MessageBox.Show("Do you want to delete a record", "Test", MessageBoxButtons.YesNo);

                 if (dr == DialogResult.Yes )

                 {

                   // DO Sommthig(Delete a record)

                 }

                 else  if (dr == DialogResult.No)

                 {

                    //Do Something(Error message)

                 }