Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello,

Hope all is well, I am experiencing performance issues on my ASP.NET web application, I think the problem resides with possibly having too many data bounded controls (dropdown lists, grids, etc.) on my web form.

Can this cause performance issues?

I have all of the forms on one ASPX page, which in turn displays relevant content based on selection of tabs, etc.

My questions is are all these SqlDataSources reading data from the database server during page load? I am not sure if this is the case or the problem but it seems like potentially all datasources from all pages are loading data when the page is loaded which in turn is causing the web page to be way too slow.

Also does having too many SqlDataSources cause performance issues? I can find anything on this matter... appreciate your feedback and info...

Many Thanks!
Shirzad Sharif
Posted
Comments
Krunal Rohit 25-Oct-15 5:12am    
I'd suggest you to use jQuery AJAX to load your data.

-KR
Sinisa Hajnal 26-Oct-15 3:36am    
If everything loads at the start, put all queries into single stored procedure and get the data in one go. If you react to events, fill the data on the events (tab changed, page load, button click or whatever) that cause particular control(s) to show/load.
Shirzad Sharif 26-Oct-15 6:21am    
thanks guys!

1 solution

Thanks, what I ended up doing was use the ObjectDataSource instead of SqlDataSource, this seems to be pretty significant as it adds a DLA (Data Access Layer) to the application.

http://www.c-sharpcorner.com/UploadFile/6897bc/using-objectdatasource-control-and-its-advantage-over-sqldat/[^]

Also ended up publishing the website and it seems to run significantly faster than in debug, which made me look into Visual Studio settings to make some changes so the debugger runs faster...

I am still interested in further optimizations to the way data is being accessed, but I will have to do this at a later date.

Thanks,
Shirzad
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900