Why do ASP.NET JSON web services return the result in 'd'?

前端 未结 1 968
名媛妹妹
名媛妹妹 2020-11-29 11:46

I wrote some ASP.NET web services that use JSON encoding, a la:

[WebInvoke()]
[OperationContract]
public int SetInformation(int recordid, string data)
{
             


        
1条回答
  •  无人及你
    2020-11-29 12:10

    This is a "security" feature that prevents the JSON from being returned from being able to be directly executed javascript inside an Eval statement. Or something very similar along these lines.

    More information on this topic: http://encosia.com/a-breaking-change-between-versions-of-aspnet-ajax/ take a look at the section labeled Waiter, there’s a .d in my msg soup!

    0 讨论(0)
提交回复
热议问题