title: How to change returned ContentType in ASP.NET MVC controller (ActionResult)
body: <p>I have ASP.NET MVC controller named dictionary with method ControlsLangJsFile.
  Method returns view of users control (ASCX) which contain JavaScript variables. </p>
  
  <p>When i call the method it returns variables with parsed strings, but Content Type is html/text. It should be: <strong>application/x-javascript</strong></p>
  
  <pre><code>public ActionResult ControlsLangJsFile()
      {
          return View("~/Views/Dictionary/ControlsLangJsFile.ascx",);
      }
  </code></pre>
  
  <p>How do i achieve this?</p>