B
ben
..NET allows the use of Shared module-level vars to share a variable
between connections to our web-based app. So why doesn't .NET allow
us to have an implementation of a 'Local Shared' module-level variable
that has its value maintained per connection.
At the moment the only ways to achieve this is to use Session or
ViewState which personally I don't like, a) Session means using an
additional method getting setting ariable values, doesn't have type
checking etc, b) ViewState is horrible when you have relativily small
amounts of data in your variables as the data is stored in the form
which effects the size of the page.
If there is an alternative that people are using I would be very
interested to hear it.
between connections to our web-based app. So why doesn't .NET allow
us to have an implementation of a 'Local Shared' module-level variable
that has its value maintained per connection.
At the moment the only ways to achieve this is to use Session or
ViewState which personally I don't like, a) Session means using an
additional method getting setting ariable values, doesn't have type
checking etc, b) ViewState is horrible when you have relativily small
amounts of data in your variables as the data is stored in the form
which effects the size of the page.
If there is an alternative that people are using I would be very
interested to hear it.