Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Label)Master.FindControl("lblTitle")).Text = "Photos";
        Userid = SessionClass.getUserIdOrTempUserId();
        Session["PhotoAlbumId"]   = null;
        Session["HighResoultion"] = null;
        LoadDataListMediaAlbum();
        LoadDataListTagPhotos();
        LoadDataListTagAlbums();

        // for counting tag photo by friend if not found any then hide label
        List <Tags> lstphoto = TagsBLL.getTagsListbyFriendsId(Global.PHOTO, Userid);

        if (lstphoto.Count == 0)
        {
            tagphoto_Label.Visible = false;
        }
        // for counting tag album by friend if not found any then hide label
        List <Tags> lstalbum = TagsBLL.getTagsListbyFriendsId(Global.PHOTO_ALBUM, Userid);

        if (lstalbum.Count == 0)
        {
            Tags_Album_label.Visible = false;
        }

        List <MediaAlbum> for_more_album_count = MediaAlbumBLL.getMediaAlbumTop6(Userid, Global.PHOTO);

        if (for_more_album_count.Count < 5)
        {
            lbtnMore.Visible = false;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid = SessionClass.getUserIdOrTempUserId();

        ((Label)Master.FindControl("lblTitle")).Text = "FriendsList";
        if (!IsPostBack)
        {
            LoadFriendsList();
        }
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid = SessionClass.getUserIdOrTempUserId();

        ((Label)Master.FindControl("lblTitle")).Text = "Remove Friends";
        if (!IsPostBack)
        {
            LoadFriendsList();
        }
        Panel1.DefaultButton = "SearchButton";
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     Userid = SessionClass.getUserIdOrTempUserId();
     ((Label)Master.FindControl("lblTitle")).Text = "Suggestions";
     if (!IsPostBack)
     {
         LoadSuggestions();
         LoadUserEmployersFilterItems(Userid);
         LoadUserUnisFilterItems(Userid);
         LoadUserSchoolsFilterItems(Userid);
         LoadMutualFriends();
     }
 }
Exemple #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid = SessionClass.getUserIdOrTempUserId();

        ((Label)Master.FindControl("lblTitle")).Text = "Manage Your Friends";
        if (!IsPostBack)
        {
            LoadFriendsList();
        }

        if (ListDropDownList.Items.Count == 0)
        {
            foreach (ObjectLayer.ListViewBO obj in ListViewBLL.getList(Userid, Global.CONFIRMED))
            {
                ListDropDownList.Items.Add(obj.ListName);
            }
        }

        Panel1.DefaultButton = "SearchButton";
    }
Exemple #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid = SessionClass.getUserIdOrTempUserId();

        ((Label)Master.FindControl("lblTitle")).Text = "View Friends";
        if (!IsPostBack)
        {
            LoadFriendsList();
        }

        if (GridViewFriendsListRequest.Rows.Count == 0)
        {
            pendinglabel.Visible = false;
        }
        else
        {
            pendinglabel.Visible = true;
        }

        Panel1.DefaultButton = "SearchButton";
    }