In above Javscript code I can successfully retrieve datakeyvalue of all the selected rows inside Hiddenfield.
But when I am trying to fetch the hidden field value in code behind on button click, it only shows datakeyvalue for last selected row of Grid not all selected.
Example: If I had selected checkbox with Id: 1, 3, 6 then in Javscript code, I am getting all the three selected rows datakeyvalue inside Hiddenfield.
But when I am trying to fetch the same hidden field values on button click, I get only last selected value i.e., 6
Please reply what is wrong ? I also need to pass the multiple selected datakeyvalue on other page