I have more than one user control on my aspx page, and each user control call it’s own service or method to display content retrieved from SQL DB. I want to reduce these round trips, and get the job done in one call. Any idea what’s the best practice.
Share
You can put your all select statements in one stored procedure that mean you will hit your database just one time and load the result into a
DataSetusingSqlAdapter.Fill(MyDataSet)and pass the each table in your dataset to corresponding user control by creating public property withDataTabletypein your page
I wish that give you a good idea