简体   繁体   English

ASP.Net页面加载

[英]ASP.Net page loading

I have a asp.net page in which i have 3 dropdown's each dropdown takes 30k rows from a storedprocedure. 我有一个asp.net页面,其中有3个下拉列表,每个下拉列表都从一个存储过程中提取了30k行。 The storedprocedure takes 8 seconds to execute and populate the rows which is the datasource for those dropdowns. 存储的过程需要8秒钟来执行和填充行,这些行是这些下拉菜单的数据源。 Now seeing this my page should take at max 15 seconds to render and load but it is taking 25 seconds can any one help on this. 现在,看到此页面,我的页面最多需要15秒钟的时间来呈现和加载,但是这需要25秒钟的时间,对此没有任何帮助。

To load this amount of data on drop down list, is first of all bad user internface because no one can search on drop down list to find this among 30k of lines, and also the browser suffer try to handle this data. 要在下拉列表中加载此数据量,首先是糟糕的用户界面,因为没有人可以在下拉列表中搜索以在30k行中找到该数据,而且浏览器也尝试处理此数据。

The most easy way that I suggest is to change the drop down list to auto complete control. 我建议的最简单方法是将下拉列表更改为自动完成控制。

http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/AutoComplete/AutoComplete.aspx

Having a dropdown list of that size is quite concerning in regards to usability and performance as you have noticed. 正如您所注意到的那样,具有如此大小的下拉列表在可用性和性能方面非常重要。 I think your best option is to have a look at alternatives such as telerik's combo box (pricey) or ASP.NET Ajax's autocompete: 我认为您最好的选择是看看替代方法,例如telerik的组合框(价格昂贵)或ASP.NET Ajax的自动竞争:

Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM