title: how to pass list string from view to controller by ajax jquery
body: <p>this is my html </p>
  
  <pre><code>&lt;ul class="sb_dropdown" style="display:none;"&gt;
                      &lt;li class="sb_filter"&gt;Chon the loai&lt;/li&gt;
                      &lt;li&gt;&lt;input type="checkbox" value="All"/&gt;&lt;label for="all"&gt;&lt;strong&gt;Tất cả&lt;/strong&gt;&lt;/label&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;input type="checkbox" value="Woman"/&gt;&lt;label for="Automotive"&gt;Đồ nữ&lt;/label&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;input type="checkbox" value="Shoes"/&gt;&lt;label for="Baby"&gt;Giày&lt;/label&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;input type="checkbox" value="Bag"/&gt;&lt;label for="Beauty"&gt;Túi sách&lt;/label&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;input type="checkbox" value="Man"/&gt;&lt;label for="Books"&gt;Đồ nam&lt;/label&gt;&lt;/li&gt;                      
                  &lt;/ul&gt;
  </code></pre>
  
  <p>this is my ajax to call control,</p>
  
  <pre><code> &lt;script&gt;
                          $('.sb_search').click(function () {
                              var list = [];
                              $('ul.sb_dropdown').find("input:checkbox:checked").each(function () {
                                  list.push($(this).val());
                              });
                              var key = { listkey: list };
                              $.ajax({
                                  url: '@Url.Action("Search", "Result")',
                                  traditional: true,
                                  data: list,
                                  dataType: "html",
                                  type: 'POST',
                                  success: function (data) {
                                      alert("success");
                                  },
                                  error: function () {
                                      alert("fail");
                                  }
                              });
  
                          });
                      &lt;/script&gt;
  </code></pre>
  
  <p>In my controller,i have a paramater listkey that i hope will receive from view when i click button search</p>
  
  <pre><code>public ActionResult Result()
      {
          return View();
      }
      [HttpPost]
      public ActionResult Result(List&lt;string&gt; listkey)
      {
          var n = listkey;
          return View();
      }
  </code></pre>
  
  <p>when i debug this isn't do the action result,and it alert fail.tell me what im doing wrong.and please help me about returnjson why i need to use instead i want to use normal View to show my result</p>
  
  <p>I has been solved this problem because i put wrong action and controller in my ajax.Thank you all</p>