title: condition checking according to alert message in asp.net
body: <p>I have generated two alert messages(Captcha Success &amp; Captcha failed) using </p>
  
  <pre><code>Page.RegisterStartupScript. 
  </code></pre>
  
  <p>this is my code</p>
  
  <pre><code>if (recaptcha.IsValid)
  {
      Page.RegisterStartupScript("captcha", "&lt;script language='javascript'&gt;alert('Captcha Success');&lt;/script&gt;");
  }
  else
  {
      Page.RegisterStartupScript("captcha", "&lt;script language='javascript'&gt;alert('Captcha Failed');&lt;/script&gt;");
  }
  </code></pre>
  
  <p>now i want to submit my form only captcha success alert is shown.. how can i do that? can anyone help please?</p>