Get Selected Checkbox on Grid View to Controller
<p>I have a grid under foreach statement. This foreach statement has an HTML input checkbox column.</p>

<p>My problem is, I am able to populate my rows and grid properly. All input fields are okay even the checkbox attributes were okay but I cannot get all the "checked" checkbox to pass into the controller as Model.</p>

<p>Here is my HTML/View code:</p>

<pre><code>&lt;input type="checkbox" class="chkEmployee" name="lngEmployeeID" value="="@Model.lngEmployeeID"&gt;&lt;/input&gt;
</code></pre>

<p>And this is my JQuery code:</p>

<pre><code>function fncBulkApprove() {

        $('#btnEdit').unbind();
        $('#btnEdit').on('click', function(e) {
             e.preventDefault();
             var objData = $('form').serialize();
            $.ajax({
                url: '@Url.Action("fncBulkEdit", Model)',
                type: 'POST',
                datatype: 'application/JSON',
                data: objData,
                beforeSend: function () {
                },
                complete: function (request, status) {
                },
                success: function (result) {
                    $('#divEdit').dialog('open');
                },
                error: function (request, status, error) {
                }
            });                   
            });                
    }
</code></pre>

<p>On my controller, I am passing my Model as parameter:</p>

<pre><code>[HttpPost]
    public PartialViewResult fncBulkEdit(entEmployee objModel)
    {
        return PartialView("_Edit");
    }
</code></pre>

<p>The list of IDs on the model are declared under:</p>

<pre><code>public virtual IList&lt;long&gt; lngEmployeeID { get; set; }
</code></pre>

<p>How will I am able to pass all checked checkboxes as IList IDs to my controller?</p>