Exemple #1
0
    private void InitUserInfo()
    {
        if (String.IsNullOrEmpty(UserGuid))
        {
            return;
        }
        WebBean bean    = WebBean.GetInstance();
        DataSet dataSet = bean.Select_User_Data(UserGuid);

        if (dataSet == null || dataSet.Tables.Count <= 0 || dataSet.Tables[0].Rows.Count <= 0)
        {
            return;
        }
        foreach (DataRow row in dataSet.Tables[0].Rows)
        {
            TextBoxAccount.Text  = row["Account"].ToString();
            TextBoxUserName.Text = row["UserName"].ToString();
            RadioButtonListBan.Items.FindByValue("0").Selected = Convert.ToBoolean(row["Ban"].ToString());
        }
    }