开发者

SharePoint WebService (as ScriptService)? Why is the return in data.d?

so I've created a WebService in SharePoint and made it a ScriptService by referencing the respective DLL and using the attribute. I do make the cal开发者_开发技巧ls in jQuery. Everyhting here works great.

What is a little bit confusing to me is the fact that the returned data is not directly in "data" but in variable called "d". I find this quite annoying.

Can somebody tell why that is and if and how I can change this?


I believe it's because Microsoft AJAX returns data in "data.d" for security reasons. Check out the "Understanding the 'd' Parameter in ASP.NET AJAX JSON Data" section of this article:

http://www.asp.net/ajaxlibrary/Using%20JSON%20Syntax%20with%20Ajax.ashx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜