title: MVC3 remote validation event debugging
body: <p>Super simple problem with way to many hours fiddling.  I've got </p>
  
  <pre><code>[Remote("UserNameValidation", "Validation")]
  </code></pre>
  
  <p>decorated on my UserName property in the RegisterModel of an MVC3 application.  The routine UserNameValidation is being called on the server so I know I've got the thing wired up this far.</p>
  
  <p>I've returned the following two attempts to make the error fire at the browser. These have each been placed unconditionally in my UserNameValidation routine (break points show they are executing).</p>
  
  <pre><code>return Json(false, JsonRequestBehavior.AllowGet);
  return Json( "This is my error", JsonRequestBehavior.AllowGet);
  </code></pre>
  
  <p>Neither cause any message in the browser.  The Html inside the cshtml file is the standard:</p>
  
  <pre><code>     &lt;div class="editor-field"&gt;
          @Html.TextBoxFor(m =&gt; m.UserName)
          @Html.ValidationMessageFor(m =&gt; m.UserName)
       &lt;/div&gt;
  </code></pre>
  
  <p>Everything looks good in Firebug but for the life of me I can't seem to figure out what JQuery routine to try to debug.  According to Firebug and FireQuery, there are no events on the individual fields of the fieldset, but there are events attached to the form. But event names are the such of jQuery152035587891986792763 or object or GUID 7 or whatever.  What I think I need to do is find a JQuery ajax call that I can set a break point in and watch what it does or doesn't do when it returns from the ajax call to the server.  I've set break points on just about every jquery function I can imagine and I still don't get any joy.  Any ideas?</p>