Re: Normal Practice....
From: Curt_C [MVP] (software_AT_darkfalz.com)
Date: 11/03/04
- Next message: mg: "Re: Run .exe in C# .aspx.cs"
- Previous message: Wilson Smith: "Normal Practice...."
- In reply to: Wilson Smith: "Normal Practice...."
- Next in thread: Marina: "Re: Normal Practice...."
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 3 Nov 2004 14:26:53 -0600
open and close as necessary, explicitly. Dont rely on the unload to do it.
That's my "normal way"
-- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com "Wilson Smith" <WWilson67@hotmail.com> wrote in message news:uahXLLewEHA.2568@TK2MSFTNGP11.phx.gbl... > Microsoft document says use the Page_Unload event to perform final cleanup > work. > > Like, closing files, closing database connections. > > Considering the performance of the application is it always a good idea to > open the database connection at the Page_Load and do all the work and > close > the connection in the Page_Unload event? Currently for each routine in its > specific function/sub routine I am opening the database connection and > closing. > > I am just curious what the normal practice in the industry is in this > scenario. > > Thanks for your reply. > > Will > >
- Next message: mg: "Re: Run .exe in C# .aspx.cs"
- Previous message: Wilson Smith: "Normal Practice...."
- In reply to: Wilson Smith: "Normal Practice...."
- Next in thread: Marina: "Re: Normal Practice...."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|