title: how to display alert by using serverside code in asp.net?
body: <p>I want to execute following code on button click but the follwing code executes when I refresh the page as well. I don't want that behaviour. Please help me.</p>
  
  <pre><code>string str = "Are you sure, you want to Approve this Record?";
  this.ClientScript.RegisterStartupScript(typeof(Page), "Popup", "ConfirmApproval('" + str + "');", true);
  </code></pre>