title: Alert message box
body: <p>I have been using label text to show different status in an asp.net website.</p>
  
  <p>e.g. "Profile Updates", "Invalid Character" etc, however would prefer to have a pop up message box instead.</p>
  
  <p>This is what I have tried -</p>
  
  <pre><code>string alert = ws.webMethod(TextBox1.Text);
  System.Web.HttpContext.Current.Response.Write("&lt;SCRIPT LANGUAGE='JavaScript'&gt;alert(" + alert + ")&lt;/SCRIPT&gt;");
  </code></pre>
  
  <p>However when this is fired, the screen in IE just seems to get bigger, and no message box is presented.</p>
  
  <p>How can I achieve this?</p>