AutoCompleteExtender 的问题 ServiceMethod/yonglin.asmx那部分代码是关键 贴下 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 应该需要修改autocompletebehavior.js_onTimerTick: function(sender, eventArgs)里面有Sys.Net.WebServiceProxy.invoke方法,改一下 1楼:应该和那个无关返回的是一个700多条记录的string()我试验下二楼的方法 那个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是不是有传入参数的? 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);修改自己传进去的字符,和需要的数量 public string[] GetAllKCName(string prefixText, int count){}这里头的两个参数一定要这么写,名称都不能变,前一个是匹配的字符,后一个是匹配的个数 如何让WebBrowser控件按顺序加载完一个网页后再加载另外一个? 为什么同一条语句,C和C#运行的结果不一样~~~ listview 如何制作软件升级补丁 求C# 利用固定word模板 批量导出信息表 (导出后可编辑修改) 请问如何判断指定的路径是否存在相关的xml文件? 如何通过窗口句柄来获得或创建 Form 对象!? 请问:在C#中如何将条形码控件生成的图片直接保存到SQL数据库中?谢谢 如何改变datagrid中单个字符的颜色?? 有关参数传递和字符串赋值 WebRequest.GetResponse很慢的问题 请问asp.net 中么查询本周的内容 数据库是SQL
_onTimerTick: function(sender, eventArgs)里面有Sys.Net.WebServiceProxy.invoke方法,改一下
应该和那个无关返回的是一个700多条记录的string()
我试验下二楼的方法
_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是不是有传入参数的?
{ prefixText : this._currentPrefix, count: this._completionSetCount },
Function.createDelegate(this, this._onMethodComplete),
Function.createDelegate(this, this._onMethodFailed),
text);修改自己传进去的字符,和需要的数量
{}
这里头的两个参数一定要这么写,名称都不能变,前一个是匹配的字符,后一个是匹配的个数