Ejemplo n.º 1
0
    protected void CheckBoxShowOnlyAssigned_CheckedChanged(object sender, EventArgs e)
    {
        if (Context.User.Identity.IsAuthenticated)
        {
            var pdODS = new ProfileDataODS();
            pdODS.UpdateProfileData(Context.User.Identity.Name,
                                    Utils.ProfileDataShowOnlyAssignedSessions,
                                    CheckBoxShowOnlyAssigned.Checked ? "true" : "false");
        }

        if (CheckBoxShowOnlyAssigned.Checked)
        {
            Repeater1.DataSourceID = "ObjectDataSourceSessionsOnlyAssigned";
        }
        else
        {
            Repeater1.DataSourceID = "ObjectDataSourceSessions";
        }

        Repeater1.DataBind();
    }
Ejemplo n.º 2
0
    protected void DropDownListSessionSortBy_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (Context.User.Identity.IsAuthenticated)
        {
            var pdODS = new ProfileDataODS();
            pdODS.UpdateProfileData(Context.User.Identity.Name,
                                    Utils.ProfileDataSessionsSortBy,
                                    DropDownListSessionSortBy.SelectedValue);
        }

        if (DropDownListSessionSortBy.SelectedValue.Equals("Time"))
        {
            if (CheckBoxShowOnlyAssigned.Checked)
            {
                Repeater1.DataSourceID = "ObjectDataSourceSessionsOnlyAssigned";
            }
            else
            {
                Repeater1.DataSourceID = "ObjectDataSourceSessions";
            }
        }
        else if (DropDownListSessionSortBy.SelectedValue.Equals("Speaker"))
        {
            Repeater1.DataSourceID = "ObjectDataSourceBySessionPresenter";
        }
        else if (DropDownListSessionSortBy.SelectedValue.Equals("Title"))
        {
            Repeater1.DataSourceID = "ObjectDataSourceBySessionTitle";
        }
        else if (DropDownListSessionSortBy.SelectedValue.Equals("Submitted"))
        {
            Repeater1.DataSourceID = "ObjectDataSourceSessionSubmitted";
        }
        Repeater1.DataBind();

        //<asp:DropDownList ID="DropDownListSessionSortBy" runat="server" OnSelectedIndexChanged="DropDownListSessionSortBy_SelectedIndexChanged" >
        //    <asp:ListItem Value="Title">Session Title</asp:ListItem>
        //    <asp:ListItem Value="Time">Session Time</asp:ListItem>
        //    <asp:ListItem Value="Speaker">Session Speaker</asp:ListItem>
        //</asp:DropDownList>
    }
Ejemplo n.º 3
0
    protected void CheckBoxHideDescriptions_CheckedChanged(object sender, EventArgs e)
    {
        Repeater1.DataBind();

        if (Context.User.Identity.IsAuthenticated)
        {
            var pdODS = new ProfileDataODS();
            pdODS.UpdateProfileData(Context.User.Identity.Name,
                                    Utils.ProfileDataSessionsHideDescriptions,
                                    CheckBoxHideDescriptions.Checked ? "true" : "false");
        }
    }