Ask a Question related to ASP.NET General, Design and Development.
-
Atif Jalal #1
Database connection sharing
How can I share the sane databse connection between asp.net pages. I
also use objects(middleware), so can I pass the same DB connection
when I instantiate the object by calling its constructor?
Atif Jalal Guest
-
Internet Connection Sharing
Can you elaborate on this a bit? What kind of connection are you trying to share? At exacly what point does the error message come up? How are... -
Sharing a dial-up connection over a wireless lan
How do you get network to share a connection from one computer? It shows up on all the computers as connected and when you open any programs that... -
Error with Internect Connection Sharing
occured help I'm not sure if this is the problem but you should check this. Go into computer management (control panel -> administrative tools)... -
net connection sharing
yes I know, ill tell you in December "Sia" <siavash_s_s@hotmail.com> wrote in message news:euldZdT6CHA.2268@TK2MSFTNGP11.phx.gbl... things... -
Sharing dial up connection
I am trying to network 2 xp machines. #1 has a 56k modem, with ICS enabled. #2 sees the connection, but will not dial the modem. This is with MSN,... -
Steve C. Orr, MCSD #2
Re: Database connection sharing
This connection sharing is done automatically. ADO.NET has built in
connection pooling.
Open your db connection just before you need it, and close it as soon as you
are done with it.
As long as you use the same exact connection string everywhere the sharing
will be automatic - you will not actually open a new database connection
each time despite what the syntax suggests. The connections will be
recycled for you.
Purposely keeping connections open and trying to pass them to other pages
will result in inefficient, poorly performing code.
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Atif Jalal" <matif@hotmail.com> wrote in message
news:b7af12d4.0308081253.340380d2@posting.google.c om...> How can I share the sane databse connection between asp.net pages. I
> also use objects(middleware), so can I pass the same DB connection
> when I instantiate the object by calling its constructor?
Steve C. Orr, MCSD Guest



Reply With Quote

