如何加载大量数据在ListBox? ASP.NET MVC应用程序 [英] How to load large amounts of data in a ListBox? ASP.NET MVC application
问题描述
我正与ASP.NET MVC应用程序。
I am working with an ASP.NET MVC application.
有一个要求,即用户可以选择从一个ListBox中的项目可能包含超过30,000项。
There is a requirement that a user be able to select an item from a ListBox that could contain over 30,000 entries.
有一个动态的方式来填充使用Ajax调用这个列表框的内容 - 这将表现良好?
Is there a dynamic way to populate the contents of this ListBox using an Ajax call - that would perform well?
我会过得更好只是填充在服务器上的列表框控件,然后让用户等待,而页面呈现有3万项?
Would I be better off just populating the ListBox control on the server and then having the user wait while the page renders with the 30,000 entries?
可否性能更好,如果我通过某种jQuery的解决方案?
Would performance be better if I adopted some sort of jQuery solution?
在如何最有效地处理这种情况下任何建议(无需客户变更要求: - )?)
Any suggestions on how to most efficiently deal with this scenario (without having the client change the requirement :-))?
推荐答案
这听起来像一个坏主意 - 30000项?你会感觉如何,如果你有从列表中选择该尺寸?
This sounds like a bad idea - 30,000 entries? How would you feel if you had to select from a list this size?
这是更好地使用自动完成这种类型的使用案例。
It is better to use autocomplete for this type of use case.
这篇关于如何加载大量数据在ListBox? ASP.NET MVC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!