I have an array of JavaScript objects called 'persons' as in code below that gets created within JavaScript of a certain aspx page. I would like this array to be available in code-behind when a button on this aspx page causes the page to
post back in a non-ajaxified manner.
I know I can do this using jQuery post by using JSON.stringify , but I would like the post to be a non-ajaxified post, which is not possible using jQuery.
Is there any way of doing this?
var person1 = {firstName:"John", lastName:"Doe", age:50, eyeColor:"blue"};
var person2 = {firstName:"Robin", lastName:"Wills", age:65, eyeColor:"blue"};
var persons = [];
persons.push(person1);
persons.push(person2);
Go to the complete details ...