Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         ViewState[PersonList] = string.Join(",", RegionVisibilityHelper.GetPersonsForUser(Page.User.Identity.Name).Select(x => x.Id).ToArray());
         radgrid.DataSource    = GetDataSource();
         radgrid.DataBind();
     }
 }
Esempio n. 2
0
    }                                           //holds the value of radgrid datasource on filter. used when sorting items.

    #region Page Events
    protected void Page_Load(object sender, EventArgs e)
    {
        // Display the persons visible to this user.
        ViewState[PersonList] = string.Join(",", RegionVisibilityHelper.GetPersonsForUser(Page.User.Identity.Name).Select(x => x.Id).ToArray());
        if (!Page.IsPostBack)
        {
            FilterExpression = string.Empty;
            originalDS       = null;
            currentDS        = null;
        }
    }
Esempio n. 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        GroupId = Request.QueryString["id"];

        if (!Page.IsPostBack)
        {
            UserNamesList = new List <string>();
            DisplayGroupDetails();
            ViewState[PersonList] = string.Join(",", RegionVisibilityHelper.GetPersonsForUser(Page.User.Identity.Name).Select(x => x.Id).ToArray());
        }
    }
Esempio n. 4
0
    protected void DisplayUsers(PersonType editPersonType)
    {
        ListBox listUsers = new ListBox();

        IList <Person> persons = RegionVisibilityHelper.GetPersonsForUser(Page.User.Identity.Name);

        foreach (Person person in persons)
        {
            if (PersonManager.IsPersonInPersonType(person, editPersonType) == true)
            {
                User user = MembershipManager.GetUserByPerson(person);
                listUsers.Items.Add(new ListItem(user.Name));
                UserNamesList.Add(user.Name);
            }
        }

        ctrlManageGroupEdit.SetList(listUsers);
    }