title: Using MessageBox, change to 'Yes' or 'No'
body: <pre><code>string LocalWorkSiteName = WorkSite.Site_Name;
  
  System.Windows.Forms.MessageBox.Show("Are you sure you want to delete invoice " for " + LocalWorkSiteName);
  </code></pre>
  
  <p>1) Why does the pop up always appear behind the browser? I want it to load in front of the browser.</p>
  
  <p>2) How can I add a 'Yes' and 'No' button and remove the current 'OK'? So in code behind, if 'yes' do one thing if 'no' do the other:</p>
  
  <pre><code>if(yesIsPressed)
  {
  ...
  }
  if(noIsPressed)
  {
  ...
  }
  </code></pre>
  
  <p>Am I going about this the correct way or are there more suitable methods?</p>
  
  <hr>
  
  <p><strong>EDIT</strong>
  Thanks for the reply guys...Going to go with the JS side, but I may need some assistance with it.
  So my button:</p>
  
  <pre><code>&lt;asp:Button runat="server" ID="RemoveInvoice" Text="Remove Invoice" OnClick="RemoveInvoice_Click" CssClass="FadeOutOnEdit" /&gt;
  </code></pre>
  
  <p>runs the code behind function 'RemoveInvoice_CLick'...can I also get it to run the JS or do I need to change it to an input button and then do the code behind updates from there</p>