G
Guest
I'm trying to understand the implications of using static methods and
properties in asp.net so I found an article "Troubleshooting ASP.NET
applications with the use of static keywords"
(http://support.microsoft.com/?id=893666) that discusses the possiblity of
users seeing other users data if they access static methods at the same time
because values are shared.
Although I never used it, I noticed that some SqlHelper functions part of
the Data Access application block use static methods (i.e ExecuteReader) Why
would this be if there is a risk of race conditions as described in the
article?
It seems static should be used very sparingly in asp.net app (as opposed to
say a desktop smart client app where each user would have their own copy of
static methods/properies) Is this a fair assessment??
Thanks
properties in asp.net so I found an article "Troubleshooting ASP.NET
applications with the use of static keywords"
(http://support.microsoft.com/?id=893666) that discusses the possiblity of
users seeing other users data if they access static methods at the same time
because values are shared.
Although I never used it, I noticed that some SqlHelper functions part of
the Data Access application block use static methods (i.e ExecuteReader) Why
would this be if there is a risk of race conditions as described in the
article?
It seems static should be used very sparingly in asp.net app (as opposed to
say a desktop smart client app where each user would have their own copy of
static methods/properies) Is this a fair assessment??
Thanks