title: Raising Javascript confirm box from code behind
body: <p>I am trying to raise a Javascript confirm box from code behind.</p>
  
  <p>I am using the following syntax</p>
  
  <pre><code>ScriptManager.RegisterStartupScript(this, GetType(), "key", "javascript:return confirm('Are you sure you want to delete?');", true);
  </code></pre>
  
  <p>It is throwing an error:</p>
  
  <blockquote>
    <p>return statement out of function</p>
  </blockquote>
  
  <p>Please help.</p>