Ask a Question related to ASP.NET General, Design and Development.
-
Nick #1
Re: does an Sqlconnection object get shared at application level?
thanks Paul, I did not think tht a variable would be shared
application wide just because it was declared as static. I figured it
would be session wide, or "Per user instance". this is good to know
thanks Again
On Thu, 26 Jun 2003 22:51:09 -0400, "Paul Wilson [MVP]"
<Paul@WilsonDotNet.com> wrote:
That's exactly what static means -- its a global variable shared by
any and
all.
You should use session variables if you want something unique to a
user
session.
Anyhow, database connections should never be put into session or
statics.
You should instead open a connection when you need it and close it
fast too.
This simply releases it to the pool, so its very efficient and it
avoids
contention.
Thanks, Paul Wilson (MVP)
Nick Guest
-
How to use object shared on the Application level in the User Cont
Hi, I am a newbie to ASP.NET and I would like to ask you to help me with the following problem. First, We have a class to represent a sql... -
How to find which level of the object on?
I do have my own constructor function for object. Say I have the constructor Ball(); I then: var Ball1 = new Ball(); Flash knows which level... -
Application level variables
Christopher wrote: you need a permanent data store. usually available resources include text files, RDMS and code. global.asa is a good place... -
How to create top-level site/application
Hum...am I missing something here. Seems like when I create a new web application in visual studio .net, it will put it at... -
Application-Level Record Locking
Before you go too far down this road, check this out: http://www.microsoft.com/mspress/books/sampchap/3445.asp#SampleChapter HTH, Bob Barrows...



Reply With Quote

