Reputation: 13
A bit of background... I have a web page that simply contains 6 drop down lists and a grid. The queries to populate these are very straightforward (maximum of 4 lines) and have been placed into 7 separate SqlDataSources.
The problem I am facing is that the initial pageload is taking far too long and as such was wondering how the SqlDataSource connection actually works.
Does the page open up one transaction for all the sources and then close at the end? Or does it (as I suspect) open and close a separate transaction for each SqlDataSource?
Upvotes: 1
Views: 115
Reputation: 55
Even if it is making 7 separate calls to the database, which I suspect it is, it shouldn't take that long considering that you are populating dropdowns with what I can only imagine is a small set of data.
There are several solutions to this problem that might help you.
Upvotes: 1