Get JSON data with jQuery from a .NET service: confused with ajax setup

后端 未结 3 1071
北荒
北荒 2020-12-11 18:04

I\'ve just spent six hours trying to get this straight in my head and I haven\'t succeeded.

There\'s a HelloWorld .NET 3.5 web service on my local machine. Set up as

3条回答
  •  悲&欢浪女
    2020-12-11 18:33

    when posting to asp.net web services you always have to set the content type to that - it's their way of preventing json hijacking.

    About the dates the easiest solution would be to return the dates as strings dealing date types on the client side will be a huge PITA (from my experience at least).

提交回复
热议问题