I have the collection of string and array variable which is need to pass controller through ajax post action. for Ex:
string str="john";
int temp= 10;
var arrayObj=new Array();
$.ajax({
type: 'Post',
url: 'home/controller',
data: ?, // how to pass all string,int and array object
datatype: ?, //'html/ or Json' what will need to give?
success: function (result) {
},
});
Anyone could answer my questions? Thanks, Bharathi.