예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //get the security data from the session
        Sec = (clsSecurity)Session["Sec"];
        //if it is null then this is the first run of the site
        if (Sec == null)
        {
            //initialise the object
            Sec = new clsSecurity();
            //save it to the session
            Session["Sec"] = Sec;
        }
        //set the state of the menu buttons
        Authenticated(Sec.Authenticated);

        //create a customer object
        clsCustomer customer = new clsCustomer();
        Boolean     Found    = false;

        Found      = customer.GetFirstNameByEmail(Sec.UserEMail);
        lblHi.Text = "Hi~  " + customer.FirstName;
    }