Imagine a scenario where I have a C# method that requires an array parameter:
[AjaxPro.AjaxMethod]
public int Test3(string[,] array)
{
return array.Length;
}
Next, I define a multidimensional array on the front page using JavaScript:
var array = [
["a", "b", "c", "d"],
["a", "b", "c", "d"],
["a", "b", "c", "d"]
];
My intention is to pass this array parameter to the C# method:
alert(Get_Data.Test3(array).value);
However, the alert shows null
How can I correctly pass the array parameter into the C# method?
Thank you