In a ASP.net web application there are Private static variables which either holds the values from DB tables field or NULL.
private static decimal? X = null;
if (tdataItems.Y != null)
{
X = tbldataItems.Y;
}
the scope is limited to class and its not shared across pages.
is it good to have such private static variables? i was going through the thread safety issue of static variables so bit confused.
any help or redirection will be highly appreciated!
Thanks!