Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Re: open/close connection


Message #1 by "Henry Petersen" <henry@d...> on Tue, 13 Nov 2001 13:00:03
Thanks, that's what I've been doing and it hasn't caused any problems so 
far. 

> > I only want to open a oledbconnection once in my pages.
> > I presume the place to so this would be SUB Page_Load.
> > 
> > Where would be the best place to close the connection?
> 
> If you complete all of your database processing on Page_Load you can 
close 
> it before you exit Page_Load.  If it is needed in other processing it 
can 
> be closed in Page_Unload

  Return to Index