jQueryでASP.NETページメソッドを使用しています。これが私のコードです、
$.ajax({
type: "POST",
url: "Default.aspx/GetRecords",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
ASP.NETページメソッドは、
[WebMethod]
public static string GetRecords(int currentPage,int pagesize)
{
// my logic here
}
jQuerycurrentPage
との間で値を渡す方法は?pagesize