Hi Frnds,
i am Creating web service method in asp.net, i try to cal web methon using jQuery the result is appended in
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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manoj BhoirPosted May 14, 2015, 2:10 AM
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/