Hi Frnds,
i am Creating web service method in asp.net, i try to cal web methon using jQuery the result is appended in
Code
responseText.d here what is d and why the result is in responceText.d Object.
Thanks in Advance.
responseText.dKnow the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manoj BhoirRank #599 · 4K reputationPosted May 13, 2015, 10:10 PM EDT
Hi,
If you aren't familiar with the ".d" I'm referring to, it is simply a security feature that Microsoft added in ASP.NET 3.5's version of ASP.NET AJAX. By encapsulating the JSON response within a parent object, the framework helps protect against a particularly nasty XSS vulnerability.
Before ASP.NET 3.5, "ScriptServices" and page methods returned their data at the top level of the JSON response, like this:
In ASP.NET 3.5 and later, the same server-side code returns this:
For more information about the change and why the change is a good one, be sure to see my earlier post: A breaking change between versions of ASP.NET AJAX.
For more information see this link :
Never worry about ASP.NET AJAX's .d again
http://encosia.com/never-worry-about-asp-net-ajaxs-d-again/