title: adding messagebox in ASP.NET
body: <p>How would I add a javascript MessageBox in ASP.NET in the code behind pages using C#.</p>
  
  <p>I have something like this in mind although I still cant get it quite right.</p>
  
  <pre><code>if (success == false)
      {
          HttpContext.Current.Response.Write("&lt;SCRIPT LANGUAGE=""JavaScript""&gt;alert('User name already exists')&lt;/SCRIPT&gt;");
  
      }
  </code></pre>
  
  <p>Kind regards</p>