title: BotDetect Captcha Error Message is not displaying ASP.NET MVC
body: <p>I have integrated the BotDetect Captcha in to my ASP.NET MVC form and I can not get the validation message to display when the user enters the incorrect Captcha value.</p>
  
  <p>What do I need to change to get the validation message to display?</p>
  
  <p><strong>Edit</strong> - I added the <code>Html.BeginForm</code> portion of the view to indicate that the post back is going to a different action in the controller.</p>
  
  <p>Source Code - View</p>
  
  <pre><code>@using(Html.BeginForm("Create", "Contact", FormMethod.Post, new { enctype = 'multipart/form-data' }))
  {
      @{ 
          MvcCaptcha contactCaptcha = new MvcCaptcha("ContactCaptcha");
          contactCaptcha.UserInputID = "ContactCaptchaCode";
      }
      To prevent spam, we utilize a verification code system.  Please enter the code as it is shown in the box below.&lt;br /&gt;
      @Html.Captcha(contactCaptcha)&lt;br /&gt;
      Code:&lt;br /&gt;
      @Html.TextBox("ContactCaptchaCode", string.Empty, new { @class = "form-   control", @style = "width: 200px" })                
      &lt;div class="row"&gt;
          &lt;div class="col-sm-12" style="text-align: right"&gt;
              &lt;input type="submit" value="Send" class="btn-default" /&gt;
              @Html.ValidationMessage("ContactCaptchaCode", new { @class = "text-danger" }) 
          &lt;/div&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>Source Code - Controller</p>
  
  <pre><code>[HttpPost]
  [AllowAnonymous]
  [CaptchaValidation("ContactCaptchaCode", "ContactCaptcha", "Please enter the correct CAPTCHA code.")]
  public ActionResult Create(Models.Contact formContact)
  {
      if(ModelState.IsValid)
      {
          //do stuff here is correct captcha value
      }
  }
  </code></pre>