I
Ian
Hi there,
I have just started learning c# and I have stored my connection string in
the web.config which I can read in my main program.
My question really is, should I open the database on every single page and
also close it too?
I presume I open it on Page Load but where should I close it... at the end
of page load or should I keep it open in the global.asa file?
I know this has something to do with connection pooling but didn't know how
the normal was for writing asp.net
Any ideas?
Thanks
Ian
I have just started learning c# and I have stored my connection string in
the web.config which I can read in my main program.
My question really is, should I open the database on every single page and
also close it too?
I presume I open it on Page Load but where should I close it... at the end
of page load or should I keep it open in the global.asa file?
I know this has something to do with connection pooling but didn't know how
the normal was for writing asp.net
Any ideas?
Thanks
Ian