3
Reply

Pass array from client side to service side c#

vignesh t

vignesh t

Jan 9 2018 5:07 AM
162
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)