コード例 #1
0
    private void loadData()
    {
        lbDate.Text = cnDb.getOneData("select top 1 DateUpdate from Terms").ToString();
        string a = cnDb.getOneData("select top 1 UserName from Terms").ToString();

        lbUserName.Text    = fc.DecodeFrom64(a);
        editorContent.Text = cnDb.getOneData("select top 1 Contents from Terms").ToString();
    }
コード例 #2
0
 protected void decodeUserName() // Decode UserName trong database
 {
     for (int i = 0; i < grvMember.Rows.Count; i++)
     {
         Label lb = (Label)grvMember.Rows[i].FindControl("lbUserName");
         lb.Text = func.DecodeFrom64(lb.Text);
     }
 }
コード例 #3
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);
    }