Я использую методы страницы ASP.NET с jQuery. Вот мой код,
$.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
}
Как передать значения для currentPage
и pagesize
из jQuery?