title: MessageBox.Show() with Yes or No confirmation?
body: <p>MessageBox.Show() with Yes or No confirmation dialog box displayed in Windows Forms Application..Now I want to Shows as same as in aspx.cs page...Which namespace i added here?
  If i reference System.Windows.Forms namespace..I get an error?</p>
  
  <p>This code for Windows Application..</p>
  
  <pre><code>DialogResult result = MessageBox.Show("Do you want to save changes?", "Confirmation",
    messageBoxButtons.YesNoCancel);
   if(result == DialogResult.Yes)
    //...
   else if (result == DialogResult.No)
   //...
  else
    //...
  </code></pre>
  
  <p>But in aspx page..how can i write?</p>