【发布时间】:2010-05-10 20:46:40
【问题描述】:
如何传递我的服务端点参数? (本例中的页面大小)
我的 .asmx 服务方法如下:
[WebMethod]
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public List<Object> GetData(int pageSize)
{
}
当我通过 jQuery 调用它时:
$.ajax({
type: "POST",
url: "test.asmx/test123",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
},
error: function(msg) {
}
});
【问题讨论】:
标签: c# asp.net web-services asmx