Last post Jul 11, 2017 02:02 AM by oned_gk
Jul 10, 2017 09:51 AM|clembo67|LINK
I'm converting a 2.0 .NET website to 4.5
I've a form with dropdownlist binded with sqldatasource (stored procedure with 1.1100 records).
When I click on dropdownlist it take at least 2 second before showing list.twice consecutively..
In the old website list was shown immediately.
How do I figure out why this happens?
Jul 10, 2017 10:03 AM|XIII|LINK
you can make use of the F12 tools in your browser to take a look at events, timings, painting of the UI, ... to see where it becomes slow.
You can also compare both dropdownlists (the old and new version) and see where the difference is.
Jul 10, 2017 10:33 AM|clembo67|LINK
There is a function "Gecko" that use most time (87%)
What is this? I'm using an html template..
Jul 10, 2017 11:29 AM|XIII|LINK
that's the layout engine of your browser (https://developer.mozilla.org/en-US/docs/Mozilla/Gecko). You'll have to drill down and make snapshots to see where most of the time's being spent.
Jul 10, 2017 12:13 PM|clembo67|LINK
thanks for your response.
Trying to use other browsers (Crhome, Internet explorer, etc.) other than Firefox does not match the problem but with Firefox yes.
Jul 10, 2017 12:26 PM|XIII|LINK
so it's browser specific for Firefox alone? Try clearing your cache or use incognito mode and open your application again. Is there some script running that makes it slow? If you can create a dedicated page with only the dropdownlist to test it in different
browsers. If that's also fast in Firefox try to find why it's slow on your original page.
Jul 11, 2017 02:02 AM|oned_gk|LINK
Seem like the problem is not net framework issue.
Maybe you can compare what deferent in html output between old and new web site.
1.1100 records in dropdownlist is not good idea.
Suggest to split the dropdownlist items into some cascading dropdown for example single all city dropdown into country dropdown and city dropdpwn