title: How can i Pass values of checkBox those are checked to controller action in asp.net mvc 3 without using Ajax/JQuery in asp.net Mvc3
body: <ul>
  <li><ol>
  <li><p>I have done it with using Ajax post method .But my problem is that
             with Ajax we can not download a file so i needed a different
             idea.Following is my code</p>
  
  <pre><code>              Asp.net MVC Ajax Post:
                                 &lt;script type="text/javascript"&gt; 
  
                                     $(document).ready(function () {
                                         $('#btn').click(function () {
                                                         var vals = [];
                                                            $('input:checkbox[name=Blanks]:checked').each(function () 
                                                       {
                                                               vals.push($(this).val());
                                                         });
  
  
  
                                           $.ajax({
                                                 // Check the value.
                                                 type: 'POST',
                                                 enctype: 'multipart/form-data',
                                                 url: '/Home/Extract',
                                                // data: { 'name': checkboxData },
                                                 data: { 'name':           JSON.stringify(vals) },
                                                 // contentType: 'application/json; charset=utf-8',  // No need to define
  </code></pre>
  
  <p>contentType
                                                     success: function (result) {</p>
  
  <pre><code>                                               },
                                                 error: function (err, result) {
                                                     alert("Error in delete" + err.responseText);
  
                                                 }
  
                                             });
                                         });
                                         return false;
                                     });
                                     &lt;/script&gt;
                             @foreach (var m in (List&lt;string&gt;)ViewData["list"])
                             {
                                 &lt;ul&gt;
                                 &lt;li&gt;
                          &lt;input type="checkbox" class="myCheckbox"  name="Blanks"  value="@m"/&gt;
                                 &lt;img src="@m"  alt=""/&gt;
  
  
  
                                 &lt;/li&gt;
                               }
  
       ASp.net MVC controller Section: 
                                [AcceptVerbs(HttpVerbs.Post)]
                                 public ActionResult Extract(string[] name)
                                 {
                                   return view();
                                 }
  </code></pre>
  
  <p>I neede without Ajax post method .Is it possible?</p></li>
  </ol></li>
  </ul>