ServiceMethod/yonglin.asmx那部分代码是关键 贴下

解决方案 »

  1.   

    应该需要修改autocompletebehavior.js
    _onTimerTick: function(sender, eventArgs)里面有Sys.Net.WebServiceProxy.invoke方法,改一下
      

  2.   

    1楼:
    应该和那个无关返回的是一个700多条记录的string()
    我试验下二楼的方法
      

  3.   

    那个js是加密过的
    _onTimerTick: function(sender, eventArgs) {
    if (this._servicePath && this._serviceMethod) {
    var text = this.get_element().value;if (text.trim().length < this._minimumPrefixLength) {
    this._currentPrefix = null;this._update('', null,  false);return;}
    if (this._currentPrefix !== text) {
    this._currentPrefix = text;if (this._cache && this._cache[text]) {
    this._update(text, this._cache[text],  false);return;}
    Sys.Net.WebServiceProxy.invoke(this.get_servicePath(), this.get_serviceMethod(), false,
    { prefixText : this._currentPrefix, count: this._completionSetCount },
    Function.createDelegate(this, this._onMethodComplete),
    Function.createDelegate(this, this._onMethodFailed),
    text);}
    }
    }
    我贴出来了好像没有什么可以改动的地方啊
    这个webmethod是不是有传入参数的?
      

  4.   

    Sys.Net.WebServiceProxy.invoke(this.get_servicePath(), this.get_serviceMethod(), false, 
    { prefixText : this._currentPrefix, count: this._completionSetCount }, 
    Function.createDelegate(this, this._onMethodComplete), 
    Function.createDelegate(this, this._onMethodFailed), 
    text);修改自己传进去的字符,和需要的数量
      

  5.   

     public string[] GetAllKCName(string prefixText, int count)
    {}
    这里头的两个参数一定要这么写,名称都不能变,前一个是匹配的字符,后一个是匹配的个数