title: Display Content Result Text from AJAX Request
body: <p>I have an <code>Ajax.Action</code> link hooked up to a post method in my controller class that returns a <code>ContentResult</code>.  I'm able to make the request and get the response just fine when looking in a tool like firebug, but I'm having problems trying to actually access or do anything with the response text.</p>
  
  <p>Basically, I have something like this in my controller:</p>
  
  <pre><code>public ContentResult RevertToDefault(int id, string default)
  {
    /** Update the DB **/
  
    return Content(default);
  }
  </code></pre>
  
  <p>And this in my view:</p>
  
  <pre><code>&lt;%= Ajax.ActionLink(
    "Revert",
    "RevertToDefault",
    new { id = Model.MyObject.ID, default = Model.MyObject.DefaultValue },
    new AjaxOptions { OnComplete = "function(r) { alert(r); }" })%&gt;
  </code></pre>
  
  <p>Right now, the alert just returns <code>[object Object]</code>.  The change is made in the database, and I'm guessing that I have access to the <code>ContentResult</code> somewhere in that <code>r</code> object, but I'm having a hard time finding good examples/documentation online.</p>
  
  <p>Any ideas?</p>