我爱Aspx >> C#.Net >> 微软Asp.net Ajax 1.0的AutoComplete控件的几处修正和增强this._popupBehavior = null;
}
第二个问题,要将document.body.appendChild(this._completionListElement);这一行修改为 element.parentNode.appendChild(this._completionListElement);
第三个问题,需要在_onTimerTick方法中,为if (text.trim().length < this._minimumPrefixLength) 这个判断增加一个条件,变成:if (text.trim().length < this._minimumPrefixLength || text.trim().length > 10) ,这就使得,当用户的输入超过10个字符时,就不必向服务端调用读取匹配值的方法了。
第四个问题,要调整自动完成列表的样式,可以直接修改initializeCompletionList方法中的以下代码:
completionListStyle.backgroundColor = this._textBackground;
completionListStyle.color = this._textColor;
completionListStyle.border = 'solid 1px buttonshadow';
completionListStyle.cursor = 'default';
completionListStyle.unselectable = 'unselectable';
completionListStyle.overflow = 'hidden';
,或者删除这几行,并添加:element.className = "completionList";然后在页面上添加样式类“completionList”的定义即可;
Ҷƪл˵?
绑定Enum到ASP.NET数据绑定控件的..[07-30]
ASP开发中存储过程应用全接触[07-30]
用ASP.NET 2.0 FormView控件控制..[07-30]
ASP.NET 2.0高级数据处理之数据绑..[07-30]
ASP.NET 2.0 里输出文本格式流[07-30]
Asp.net生成htm静态文件的两种途..[07-30]
如何实现Asp与Asp.Net共享Sessio..[07-30]
Ajax实现分页查询[07-30]
一个无刷新效果定时自动更新页面..[07-30]
ASP.NET2.0的控件状态和视图状态..[07-30]
绑定Enum到ASP.NET数据绑定控件的..[07-30]
妙用Photoshop差值模式绘制逼真音..[07-30]
Photoshop调色:让美女皮肤更红润..[07-30]
在Vista工具条上添加Google Gadg..[07-30]
让火狐看上去更像一个Vista应用程..[07-30]
Excel 2007中撤消、恢复或重复操..[07-30]
无线网络安全 保卫在空气中传播的..[07-30]
把被盗QQ里丢失的QQ好友们全找回..[07-30]
Photoshop简单美化视频照片(男孩..[07-30]
用Photoshop把照片处理成剪纸[07-30]