I am confused by your response.
What is a strongly typed connection? I think you are confusing early
binding and strongly typed (2 different things).
Regardless, connections should not generally be global to begin with. .NET
uses connection pooling, so even if you create and de-reference the
connection object in several different pages, the same connection object
will get reused (this allows you to open and close as you need to).
If you want shared value types, then create them in Global, as I said.
Storing them in Session kind of defeats the purpose of shared members.
Again, you can always use the Cache object.
"Water Cooler v2" <wt*****@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
But I want to put in a connection object there. And if I make the
connection object static, while I will have it strongly typed, I might
risk the connection being closed by a different thread.
Actually, I want to share the connection, and for that matter more
variables some of which are value types, only accross all my
user-defined class instances but only within a single request.
One option I have is to put it in a dictionary like the Session object.
But I am wondering if there is another way that I can have the
variable/object stored as a strongly-typed reference rather than as a
late bound reference.