vignesh t

vignesh t

  • NA
  • 63
  • 20.4k

Pass array from client side to service side c#

Jan 9 2018 5:07 AM
I am calling a javascript function on button click using onclientclick with below function.
 
function addValues() {
var arrValue = [];
var hdnValue = document.getElementById("hdn").value;
var strValue = hdnValue.split(',');
for (var i = 0; i < strValue.length; i++)
{
var ddlValue = document.getElementById(strValue[i]).value;
arrValue.push(ddlValue);
}
}
 
arrValue array will have all the required values and how can I move this array values to server side for further process.

Answers (3)