本帖最后由 dihaokelou 于 2012-02-28 22:12:05 编辑

解决方案 »

  1.   

    。net的webservice拓展名是asmx吧 bgpic.aspx 是什么? // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    [System.Web.Script.Services.ScriptService]这句话你把注释去了吗
      

  2.   

    你应该是没调到吧?试试先执行webservice看看
      

  3.   

    静态方法 public static bgpics xxx(){}
      

  4.   


    在aspx页面我见到过demo,有人封装的,是在aspx.cs页面写的服务端方法,用ajax调用的。但我执行不了。
      

  5.   

    [System.Web.Script.Services.ScriptService]
    静态方法 public static bgpics xxx(){}