Example #1
0
        protected void btnListRoles_Click(object sender, EventArgs e)
        {
            try
            {

                rm = new RoleManager();
                lstbxRoles.Items.Clear();
                rm.List_Roles(txtbURL.Text, txtbToken.Text, txtbToken.Text);

                foreach (Role r in rm.role_list)
                {
                    lstbxRoles.Items.Add(r.name + " " + r.id);

                }

                if (rm.role_list.Count != 0)
                {
                    lnkbtnPrintFV.Visible = true;
                }
                else
                {
                    lnkbtnPrintFV.Visible = false;
                }

            }
            catch (Exception x)
            {
                lblRole.Text = x.Message;
            }
        }