M
mid
Hello!,
What is the Best Practice about dealing with a sqlconnection while page
executes?
Let me explain:
Supose you have several dropdownlists, datagrids, etc, in the same page,
that need to retreive data from sql server. Right now I open/close a sql
connection for each object that I want to populate, but I think this is not
the good way...
If I open the connection at page.load and close at page.unload and
use/reuse that connection in all the subs that get executed while page...
executes , is this a good idea??
How do you gurus deal with this question?
Thanks
mid
What is the Best Practice about dealing with a sqlconnection while page
executes?
Let me explain:
Supose you have several dropdownlists, datagrids, etc, in the same page,
that need to retreive data from sql server. Right now I open/close a sql
connection for each object that I want to populate, but I think this is not
the good way...
If I open the connection at page.load and close at page.unload and
use/reuse that connection in all the subs that get executed while page...
executes , is this a good idea??
How do you gurus deal with this question?
Thanks
mid