how to share the connection?

D

dollar

I am a newbie in asp.net , I want to share the sql connection
functions, class, variables etc. between my web forms, what is the bes
way to do that , pls help


-
dolla
 
K

Kevin Spencer

Hi dollar,

The best way is NOT to do that. Open and close database connections as
quickly as possible, and let the built-in Connection Pooling handle the
rest.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top