简体   繁体   中英

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. The storedprocedure takes 8 seconds to execute and populate the rows which is the datasource for those dropdowns. 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.

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.

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

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:

Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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