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.
Grz, Kris.
Read my blog | Twitter Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Member
14 Points
212 Posts
Slow dropdownlist
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?
All-Star
191535 Points
20936 Posts
ASPInsiders
Moderator
MVP
Re: Slow dropdownlist
Jul 10, 2017 10:03 AM|XIII|LINK
Hi,
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.
Kris.
Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Member
14 Points
212 Posts
Re: Slow dropdownlist
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..
All-Star
191535 Points
20936 Posts
ASPInsiders
Moderator
MVP
Re: Slow dropdownlist
Jul 10, 2017 11:29 AM|XIII|LINK
Hi,
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.
Grz, Kris.
Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Member
14 Points
212 Posts
Re: Slow dropdownlist
Jul 10, 2017 12:13 PM|clembo67|LINK
Hi Kris,
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.
Why??
All-Star
191535 Points
20936 Posts
ASPInsiders
Moderator
MVP
Re: Slow dropdownlist
Jul 10, 2017 12:26 PM|XIII|LINK
Hi,
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.
Grz, Kris.
Working with Azure, chatbots, ASP.NET MVC, Web API, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
All-Star
52312 Points
15574 Posts
Re: Slow dropdownlist
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.
New website page maybe have some new javascript, compatibily setting etc. like bootstrap, jquey, etc that make deferent speed response.
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
Suwandi - Non Graduate Programmer