static variables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ojb
    New Member
    • Jul 2007
    • 5

    #1

    static variables

    Hi,

    I'm using a global class to initialize and use global vars:

    public class GlobalData
    {
    public static DataTable dt = null;
    public static int nCurrentTeamInd ex = 0;
    public static bool fFirstTime = true;
    public static bool fEditMode = false;
    public static bool fSuperUser = false;
    public static string strCurrentPassw ord = "";
    }

    However, I noticed that the data isn't always initialized whenever I start up the app. Specifically, sometimes GlobalData.fFir stTime = false
    (And, yes, I set the doc's enableViewState to false ...)

    Why is that?
    Thx,
    Oran
Working...