I am calling a javascript function on button click using onclientclick with below function. arrValue array will have all the required values and how can I move this array values to server side for further process.
function addValues() { debugger; 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); } }
$.ajax({ type: "POST", data: {arrValue :arrValue }, url: "index.aspx", success: function(msg){ } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)