当前位置:编程学习 > C#/ASP.NET >>

js调用webservice

请教js如何调用webservice
不用ScriptManager;
兼容谷歌浏览器 js .net webservice 谷歌 --------------------编程问答--------------------

 $.ajax({
        type: "POST",
        contentType: "application/json",
        url: "/WebService/LoginService.asmx/GetCount",
        data: "{id:'" + id + "'}",
        dataType: 'json',
        success: function (result) {
            
        }
    });
--------------------编程问答--------------------
引用 1 楼 tan598121925 的回复:

 $.ajax({
        type: "POST",
        contentType: "application/json",
        url: "/WebService/LoginService.asmx/GetCount",
        data: "{id:'" + id + "'}",
        dataType: 'json',
        success: function (result) {
            
        }
    });

这段代码要怎么用?引用什么文件

--------------------编程问答-------------------- 参考http://www.cnblogs.com/aierong/archive/2012/10/13/jqueryDataSetDataTablewebServicejsonajaxxml.html --------------------编程问答-------------------- http://www.cnblogs.com/tianguook/archive/2010/09/30/1839590.html --------------------编程问答--------------------
用ScriptManager运行出现
Sys.WebForms.PageRequestManager  找不到Sys  怎么解决 --------------------编程问答--------------------
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,