解决方法
文章using jQuery to directly call ASP.NET AJAX page methods
文章using jQuery to Consume ASP.NET JSON Web Services
这是一个MSDN article from 2007 on Web Services and Page Methods.简单地看看,它似乎仍然与他们的工作/你需要做什么来使他们今天工作是相关的.
性能明智:
You might expect page methods to offer
better performance than Web services.
After all,to resolve Web service
calls,the ASP.NET runtime has to
parse SOAP packets. This,however,
isn’t exactly true. ASP.NET AJAX
installs a tailor-made HTTP handler
(see Figure 3) that intercepts all
ASMX requests. Requests with a /js
suffix are processed differently,
working directly with the JSON payload
and Web service method. As a result,
no SOAP is involved whatsoever and the
body of the request simply contains
the JSON stream of input arguments.
For non-AJAX requests,the new HTTP
handler just delegates the call back
to the original ASP.NET handler that
understands SOAP.
为了响应页面生命周期,页面方法不会通过服务器端页面LifeCycle(也有一个client-side Page Lifecycle).