my jquery script code part , the script is working fine and set data array/object in dataBLL..
var dataBLL = [];
$('#mytable tr').each(function (i) {
dataBLL.push({
id: $(this).find('td:eq(0)').text(),
ctype: $(this).find('td:eq(1)').text(),
cpath: $(this).find('td:eq(2)').text(),
ckey: $(this).find('td:eq(3)').text(),
ckey: $(this).find('td:eq(4) input:frist').val(),
});
$.ajax ({
url:"User/BllBtn",
type:"POST",
data:"dataBll="JSON.stringify(dataBLL);
dataType: "json",
success: function (e) {
alert("sucess");
}})
but i am not able to send this object/Array to my controller to use it's data and iterate through each row entry .
My controller signature
[HttpPost]
public ActionResutl BllBtn(List<string> dataBll)
{
}
Please guide how to get this object as list so I can loop into in simplest way.