hey all,
if i wanted to instantiate my business class just once is there a
difference between making a static variable out of it and putting it
in say application session?
Application or session? Assume you mean hte application object.
There is not much functional difference here, as the static object will be
loaded once in memory. The only place I can see a potential difference, and
conflict, is multiple web apps under a single process with the same object,
but different values, as a static object would not necessarily be scoped
the same way.
Agree with asking in ASP.NET group, however.
Peace and Grace,
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
*******************************************
| Think outside the box! |
*******************************************