[WebMethod] public static string[,] Method(string id) { string[,] str; // the number of rows and columns are unknowned for(int i=0; i < 10 ; i++) str[0,10] = "Test Value";// this initialization does not work return str; }
function myFunction() { $.ajax({ type: "POST", url: "./page.aspx/Method", data: '{"id":"' + input + '"}', contentType: "application/json; charset=utf-8", dataType: "json", success: function (msg) { var items = [,]; alert(items); } }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)