Esempio n. 1
0
    private void getAccount()
    {
        string user = Session["UserLogin"].ToString();

        txtAdress.Text = f.getAccount("Address", user);
        try
        {
            txtBirth.Text = f.getAccount("Birthday", user).Substring(0, 10);
        }
        catch (Exception) {
            txtBirth.Text = "01/01/1900";
        }
        txtEmail.Text        = f.getAccount("Email", user);
        txtName.Text         = f.getAccount("FullName", user);
        txtPhone.Text        = f.getAccount("PhoneNumber", user);
        imgAvatar.ImageUrl   = f.getAccount("Image", user);
        lbUser.Text          = f.DecodeFrom64(user);
        ddlSex.SelectedValue = f.getAccount("Gender", user);
        lbRole.Text          = "Vị trí: " + f.getRoleAcc(user);
    }