Sending a JSON object to an ASP.NET web service using JQUERY ajax function

前端 未结 5 636
闹比i
闹比i 2021-02-09 22:29

I want to create object on the client side of aspx page. And i want to add functions to these javascript classes to make easier the life.

Actually i can get and use the

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-09 23:06

    Is your asmx page expecting a soap envelope? If so you will have a tough time connecting directly to it with an xmlhttp request do to the additional markup (it's certainly do-able, but is a pain). You may want to look at some examples of creating restful services as they will be easier to communicate with via javascript. Take a look at http://www.west-wind.com/weblog/posts/324917.aspx.

提交回复
热议问题