title: Returning ContentResult for Ajax Response has extra tags in .NET MVC controller
body: <p>I have a Controller Action that is trying to return plain text to an AJAX call.  E.G.-</p>
  
  <pre><code>[HttpPost]
  public ActionResult SubmitAttachment(int id, HttpPostedFileBase theFile){
  ...
  ...
     return Content("Success");
  }
  </code></pre>
  
  <p>In my javascript function which is doing the ajax call, I am expecting the response text to just be "Success", but I'm getting <code>"&lt;head&gt;&lt;/head&gt;&lt;body&gt;Success&lt;/body&gt;"</code> instead.</p>
  
  <p>In 99% of my other controller actions, I don't have this issue.  The only thing that I can think of that makes this different is because the AJAX call to "SubmitAttachment" is a form POST with the "enctype=multipart/form-data", where as the other AJAX calls aren't uploading any files.</p>
  
  <p>Has anyone encountered this before?  If so...how would I just have it return plain text?</p>
  
  <p>NOTE: I have also tried <code>return Content("Success", "text/plain")</code>, but that just adds additional <code>&lt;pre&gt;&lt;/pre&gt;</code> tags around the "Success" string.</p>