I have a page where I am using 8-10 Usercontrols for displaying dynamic data. All usercontrols are using repeaters on them for databinding, so from this single page I have 8-10 connections in a single request for a single user. I am using conventional way of fetching data from Sql Server database that is SqlHelperClass (closing and disposing each connection when done. I am taking care of that.) -> DataLayer -> BusinessLayer and then UI.
So I just want to know :
- Is there any settings in IIS
- Any settings in web.config
- Settings in Sql Server
So that I can avoid multiple connections in a single request. Or any other approach for similar situation.
Luckily ADO.NET already uses connection pooling to automatically take care of this for you.
It is not advisable to handle many open/close connects by yourself. Just use the using statement to properly dispose of managed resources.