I want to show a message with 'yes' and 'no' button in ASP.net on button click if some condition is true
<p>I want to show a message with 'yes' and 'no' button when some condition in codebehind gets true.. and if user click yes then a piece of code will execute other wise it will not.</p>

<p>For example:</p>

<pre><code>button_click()
{
  if(condition== true)
  {
   popup a msg with yes and no
   if(user click 'yes')
   {
     then some code...
    }
  }
}
</code></pre>
