开发者

Can i pass two-dimensional array as property to .asmx webmethod using jQuery?

开发者 https://www.devze.com 2022-12-30 13:27 出处:网络
i have a webmethod with the signature: public string SubmitQAResu开发者_如何学JAVAlts(int suppId, int result, int[][] qandAs)

i have a webmethod with the signature:

public string SubmitQAResu开发者_如何学JAVAlts(int suppId, int result, int[][] qandAs)

I want to use jQuery to call this webmethod. What would it look like? thanks!


my advice is use plugin JSON.js ( http://devpro.it/code/149.html )

you can build your 2 dims array:

var players = new Array(
["TIME A",20],
["TIME B",25]
);

than convert to json and use as param

data:JSON.stringify(players);
0

精彩评论

暂无评论...
验证码 换一张
取 消