Listbox在selectedIndexchange事件上花费了很多时间 [英] Listbox is taking so much time on selectedIndexchange event

查看:376
本文介绍了Listbox在selectedIndexchange事件上花费了很多时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个列表框,其中包含超过65000个项目。在selectedindexchanged事件中,我清除了一个文本框,并从文本框中的列表框中分配了所选项目值。当事件发生时,这两个过程很快就完成了,但在加载之后继续进行。我想知道在selectedindexchanged事件之后可能会在后台进行哪个进程。很长一段时间后,文本框会显示列表框中的选定值。仅供参考这两个控件(列表框和文本框)位于ajax updatepanel中。你能帮我找一下执行selectedindexchanged事件后花了这么多时间的原因吗?

I have one listbox which is containing more than 65000 items. In selectedindexchanged event, I clear one textbox and assign selected item value from listbox in textbox. when event fires, this two process done quickly but after that loading is going on and on. I am wondering which process might be going on in background after selectedindexchanged event. After a very long time, textbox shows the selected value from listbox. FYI these two controls (listbox and textbox) are in ajax updatepanel. Can you please help me find the reason why it is taking so much time after executing selectedindexchanged event?

推荐答案

你好,

你可以试试一个ajax自动完成文本框而不是列表框。

看看这个。

使用DataBase和AjaxControlToolkit自动完成 [ ^ ]

: - )
Hi,
You could try an ajax autocomplete textbox instead of listbox.
Have a look at this.
AutoComplete With DataBase and AjaxControlToolkit[^]
:-)


这篇关于Listbox在selectedIndexchange事件上花费了很多时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆