private void ShowUsers()
        {
            cblUsers.Items.Clear();
            switch (rblMsgType.SelectedValue)
            {
            case "0":     // 用户消息
                List <AspnetUserExtInfo> list = AspnetUserExt.GetAllUserExt();
                cblUsers.DataSource     = list;
                cblUsers.DataTextField  = "TrueName";
                cblUsers.DataValueField = "UserName";
                cblUsers.DataBind();
                cblUsers.Enabled = true;
                break;

            case "1":     // 公告
                cblUsers.Items.Add(new ListItem("所有用户", "alluser"));
                cblUsers.SelectedIndex = 0;
                cblUsers.Enabled       = false;
                break;

            case "2":     // 组消息
                string[] roles = Roles.GetAllRoles();
                cblUsers.Items.Clear();
                for (int i = 0; i < roles.Length; i++)
                {
                    cblUsers.Items.Add(new ListItem(roles[i], roles[i]));
                }
                cblUsers.Enabled = true;
                break;
            }
        }
        private void BindUserList()
        {
            List <AspnetUserExtInfo> list  = AspnetUserExt.GetAllUserExt();
            List <AspnetUserExtInfo> slist = list.FindAll(HasString);

            gvUserList.DataSource = slist;
            gvUserList.DataBind();
        }
        private void BindUserList()
        {
            AspnetUserExtInfo user = new AspnetUserExtInfo();

            List <AspnetUserExtInfo> users = AspnetUserExt.GetAllUserExt();

            chkUserList.DataSource     = users;
            chkUserList.DataTextField  = "TrueName";
            chkUserList.DataValueField = "Username";
            chkUserList.DataBind();
            SetUserListState();
        }