I have Stored my Datatable in a Session variable as
Session["dt"]=dt;
and I am accessing it in the Javascript for some purpose as
var oTable = '<%=Session["dt"] %>';
var oRows = oTable.fnGetNodes(); // Error here
for (var i = 0; i < oRows.length; i++) {
var x = parseInt(cells.push($(oRows[i]).find("td:eq(1)").html()));
}
but it throws the error Object does not Support this property what could be going wrong kindly any one help
Edit : For Your Information I am just getting the datatable to fetch the Values in it and use it for some condition
I had found via your answers without serilization it may not be possible so I had serialized the data and passed the value to hiddenfield I had done as follows
myArray[0] = new { Flag = dt.Rows[0]["Flag"].ToString(),
status = dt1.Rows[0]["Status"].ToString() };
JavaScriptSerializer serializer1 = new JavaScriptSerializer();
sbAllUsers = serializer1.Serialize(myArray);
hfvalue.Value = sbAllUsers;
but I dont know how to access this value in Jquery kindly anyone help me.