解决方法
文章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).
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。