本帖最后由 vagile 于 2011-09-29 20:01:56 编辑

解决方案 »

  1.   

    我编译过很多遍了啊
    确确实实是没有问题按F5 就好用 不按就不好用
    并且按F5 在默认浏览器好用 URL拷到火狐 在打开 就又不好了 我都愁了
      

  2.   

    你尝试在ie中直接(流浪的方式)调用webservice的方法,看是否是你预期的结果。
      

  3.   

    流浪的方式是什么意思?
    就是直接访问WebService么
    我试过了 是我想要的结果
      

  4.   

    ajax 加方法
    complete: function (data, statusText)
    {
       alert(statusText)
    }看下ajax调用返回码是什么
      

  5.   

    $(document).ready(function () {
        var Referrer = document.referrer;
        $.ajax({
            type: "post",
            contentType: "application/json",
            dataType: "json",
            data: '{"Referrer":"' + Referrer + '"}',
            url: "ReferrerService.asmx/SendReferrer",
    complete: function (data, statusText)
    {
    alert(statusText);
    },
            success: function (result) {
                alert(result.d);
                //alert(Referrer);
            }
        })
    })
      

  6.   

    按F5调试 时候 是success
    其他时候 是error。。
      

  7.   

    alert(data.responseText);看下有没有错误的详细信息
      

  8.   

    问题可能是
     Uri uri = new Uri(Referrer);
    这里的Referrer是否是个可以解析的Url?你可以
    public string SendReferrer(String Referrer)
        {
               return "xxx";
        }
    进行测试
      

  9.   

    如果他能在IE中以浏览的方式访问 这个方法的话, webservice应该没问题
      

  10.   

    正解
    谢谢 如果单独return xxx好使了就 谢谢