title: confirmation message box in c# code behind
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/11861271/confirmation-message-box-in-webapplication">Confirmation message box in webapplication</a>  </p>
  </blockquote>
  
  
  
  <p>I want create a message box in code behind. My code is here. It doesn't show any message box.Please help me to do this..</p>
  
  <pre><code>Button btn = new Button();
  btn.OnClientClick = "return confirm('Your requested leave count exceeds the balance leave count.\n It may count as Loss of pay if your requeset approved by your head...\n \nAre you sure you wish to apply?');";
  if (true)
  {
    //Do something;
  }
  else
  {
    //do something;
  }
  </code></pre>