title: Return view() not working with Ajax call .NET MVC
body: <p>I have a specific problem where I post data to my MVC action in controller like this:</p>
  
  <pre><code>$(".btnAnalyze").click(function () {
      if (jQuery.isEmptyObject(product_ids) == true) {
          alert("Array is empty");
      }
      else {
          var postData = { values: Object.keys(product_ids) };
  
          $.ajax({
              type: "POST",
              url: "/Analyze/Index",
              data: postData,
              dataType: "json",
              traditional: true
          });
      }
  });
  </code></pre>
  
  <p>And this is my action:</p>
  
  <pre><code>[HttpPost]
  public ActionResult Index(List&lt;string&gt; values)
  {
      List&lt;string&gt; Products = new List&lt;string&gt;();
      foreach (var id in values)
      {
          Products.Add(GetAllProductByID(id));
      }
  
      return View("Index");
  }
  </code></pre>
  
  <p>For some reason the part:</p>
  
  <p>"Return view("Index") doesn't renders the view I said to render...</p>
  
  <p>Any ideas how to fix this ?</p>