Listbox在selectedIndexchange事件上花费了很多时间

编程入门 行业动态 更新时间:2024-10-08 08:28:21
本文介绍了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事件上花费了很多时间

本文发布于:2023-11-23 06:47:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1620491.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:事件   时间   花费了   Listbox   selectedIndexchange

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!