HI
good morning,
I need to send JQuery Method's value which is giving names of checked check boxes of the grid to do some processing.
I have a button out of the WebGrid, which is used to do some processing for the selected rows of the webgrid.
I have written jquery method which is returning names of checked check box names but I am not able to pass these name to actionlink.
In simple I am not able to call jquery method in actionlink .
Jqury method:
Code:function GetSelectedProdcut() { var arr = []; var i = 0; var str = ''; $('input:checkbox[id=chk]').each(function () { if ($(this).is(':checked')) str = str + $(this).val() + ","; //arr[i++] = $(this).val(); }); $('#hid').val(str); return str; }
Action link :
Method in controller:Code:@Html.ActionLink("Product", "DownloadZip", new { str=GetSelectedProdcut()});
public void DownloadZip(string str)
{
// Here in str I need the check boxes values,
}
Thanks





Reply With Quote