Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Label)Master.FindControl("lblTitle")).Text = "Upload Wall Photo";

        Userid = SessionClass.getUserId();
        imgProfile.ImageUrl = Global.PROFILE_PICTURE + Userid + ".jpg";
    }
Ejemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Label)Master.FindControl("lblTitle")).Text = "View Video";
        Photoid = QueryString.getQueryStringOnIndex(0);
        Userid  = SessionClass.getUserId();
        LoadFollow();
        LoadDataListComments();
        YouLikes();
        string  videotag = "";
        MediaBO objMedia = new MediaBO();

        objMedia = MediaBLL.getMediaByMediaId(Photoid);

        videotag += "  <script  type= 'text/javascript'  >";
        videotag += " jwplayer('container').setup({";
        videotag += " file: src='" + Global.USER_VIDEO + objMedia.Id + ".mp4' ,";
        videotag += " flashplayer: '../../Resources/jwplayer/player.swf',";
        videotag += " width: 520";
        videotag += " }); ";
        videotag += "</script> ";
        this.LiteralVideo.Text  = videotag;
        imgBtnComments.ImageUrl = Global.PROFILE_PICTURE + Userid + ".jpg";
        Session["SpamPhoto"]    = null;
        Session["AbusePhoto"]   = null;
    }
Ejemplo n.º 3
0
    protected void btnCrop_Click(object sender, EventArgs e)
    {
        using (Image img = Image.FromFile(Server.MapPath(Global.PROFILE_PICTURE + SessionClass.getUserId() + Global.PICTURE_EXTENSION_JPG)))
        {
            using (System.Drawing.Bitmap _bitmap = new System.Drawing.Bitmap(Convert.ToInt32(Request.Form["w"]), Convert.ToInt32(Request.Form["h"])))
            {
                _bitmap.SetResolution(img.HorizontalResolution, img.VerticalResolution);
                using (Graphics _graphic = Graphics.FromImage(_bitmap))
                {
                    _graphic.InterpolationMode  = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
                    _graphic.SmoothingMode      = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
                    _graphic.PixelOffsetMode    = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
                    _graphic.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
                    _graphic.DrawImage(img, 0, 0, Convert.ToInt32(Request.Form["w"]), Convert.ToInt32(Request.Form["h"]));
                    _graphic.DrawImage(img, new Rectangle(0, 0, Convert.ToInt32(Request.Form["w"]), Convert.ToInt32(Request.Form["h"])), System.Math.Min(Convert.ToInt32(Request.Form["x1"]), Convert.ToInt32(Request.Form["x2"])), System.Math.Min(Convert.ToInt32(Request["y1"]), Convert.ToInt32(Request.Form["y2"])), Convert.ToInt32(Request.Form["w"]), Convert.ToInt32(Request.Form["h"]), GraphicsUnit.Pixel);

                    using (EncoderParameters encoderParameters = new EncoderParameters(1))
                    {
                        encoderParameters.Param[0] = new EncoderParameter(Encoder.Quality, 100L);
                        _bitmap.Save(string.Concat(Server.MapPath("cropped/"), SessionClass.getUserId(), Global.PICTURE_EXTENSION_JPG), GetImageCodec(Global.PICTURE_EXTENSION_JPG), encoderParameters);
                    }
                }
            }
        }

        if (File.Exists(Server.MapPath(Global.PROFILE_PICTURE + SessionClass.getUserId() + Global.PICTURE_EXTENSION_JPG)))
        {
            File.Delete(Server.MapPath(Global.PROFILE_PICTURE + SessionClass.getUserId() + Global.PICTURE_EXTENSION_JPG));
        }
    }
Ejemplo n.º 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Label)Master.FindControl("lblTitle")).Text = "View Photos";
        Photoid = QueryString.getQueryStringOnIndex(0);
        Userid  = SessionClass.getUserId();

        LoadFollow();
        LoadDataListComments();
        YouLikes();
        LoadDataListTags();

        imgBtnComments.ImageUrl = Global.PROFILE_PICTURE + Userid + ".jpg";
        imgPhoto.ImageUrl       = Global.USER_PHOTOS + Photoid + ".jpg";
        System.Drawing.Image sourceImage = System.Drawing.Image.FromFile(Server.MapPath(Global.USER_PHOTOS + Photoid + ".jpg"));

        if (sourceImage.Width > 500)
        {
            imgPhoto.Width  = sourceImage.Width / 2;
            imgPhoto.Height = sourceImage.Height / 2;
        }

        Session["SpamPhoto"]  = imgPhoto.ImageUrl;
        Session["CropPhoto"]  = imgPhoto.ImageUrl.Split('/')[3].ToString();
        Session["AbusePhoto"] = imgPhoto.ImageUrl;

        GetPhotoDesc();
    }
Ejemplo n.º 5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        imgSave.Visible = false;
        lblSave.Visible = false;

        Userid = SessionClass.getUserId();

        ((Label)Master.FindControl("lblTitle")).Text = "Activities & Interests";
        if (!IsPostBack)
        {
            LoadDataListActivities();
            LoadDataListInterests();
        }


        if (lstActivitiesFriend.Items.Count == 1)
        {
            lstActivitiesFriend.Visible = false;
        }
        else
        {
            lstActivitiesFriend.Visible = true;
        }


        if (lstInterestsFriend.Items.Count == 1)
        {
            lstInterestsFriend.Visible = false;
        }
        else
        {
            lstInterestsFriend.Visible = true;
        }
    }
Ejemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid = SessionClass.getUserId();

        ((Label)Master.FindControl("lblTitle")).Text = "View Profile";
        if (!IsPostBack)
        {
            LoadDataListEmployer();
            LoadDataListProject();
            LoadDataListUniversity();
            LoadDataListSchool();
            LoadDataListBooks();
            LoadDataListMusic();
            LoadDataListMovie();
            LoadDataListTelevision();
            LoadDataListGame();
            LoadDataListActivities();
            LoadDataListInterests();
            LoadContactInfo();
            LoadPhoneNumber();
            LoadOthersEmail();
            LoadWebsites();
            LoadBasicInfo();
            LoadLanguages();
        }
    }
Ejemplo n.º 7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Label)Master.FindControl("lblTitle")).Text = "Video Album";

        Albumid = QueryString.getQueryStringOnIndex(0);
        Userid  = SessionClass.getUserId();
        Session["VideoAlbumId"] = Albumid;
        LoadDataListMedia();
    }
Ejemplo n.º 8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Label)Master.FindControl("lblTitle")).Text = "Manage Video";
        Userid = SessionClass.getUserId();

        if (!IsPostBack)
        {
            LoadDataListMedia();
        }
    }
Ejemplo n.º 9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid = SessionClass.getUserId();

        ((Label)Master.FindControl("lblTitle")).Text = "Friend Requests";
        if (!IsPostBack)
        {
            LoadFriendRequests();
        }
    }
Ejemplo n.º 10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        imgSave.Visible = false;
        lblSave.Visible = false;
        Userid          = SessionClass.getUserId();
        ((Label)Master.FindControl("lblTitle")).Text = "Sports";

        LoadDataListSports();
        LoadDataListTeam();
        LoadDataListAthelete();
    }
Ejemplo n.º 11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Label l = (Label)Page.Master.FindControl("lblTitle");

        l.Text = "View List";

        Userid = SessionClass.getUserId();

        ListViewGrid.DataSource = ListViewBLL.getList(Userid, Global.CONFIRMED);
        ListViewGrid.DataBind();
    }
Ejemplo n.º 12
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Userid = SessionClass.getUserId();
     Search = QueryString.getQueryStringOnIndex(0);
     ((Label)Master.FindControl("lblTitle")).Text = "Search User";
     if (!IsPostBack)
     {
         LoadFriendsList();
     }
     Panel1.DefaultButton = "imgBtnSearchFriends";
 }
Ejemplo n.º 13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid = SessionClass.getUserId();

        string listname = Request.QueryString["ListName"];

        ((Label)Page.Master.FindControl("lblTitle")).Text = "Friends in " + listname + " list";
        GridViewFriendsList.DataSource = ListViewBLL.getFreindByList(Userid, Global.CONFIRMED, listname);
        GridViewFriendsList.DataBind();

        Panel1.DefaultButton = "SearchButton";
    }
Ejemplo n.º 14
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ((Label)Master.FindControl("lblTitle")).Text = "Photos Album";
     Albumid = QueryString.getQueryStringOnIndex(0);
     Userid  = SessionClass.getUserId();
     Session["VideoAlbumId"] = Albumid;
     imgBtnComments.ImageUrl = Global.PROFILE_PICTURE + Userid + ".jpg";
     LoadDataListMedia();
     LoadDataListComments();
     YouLikes();
     LoadDataAlbum();
     Session["HighResoultion"] = null;
 }
Ejemplo n.º 15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid          = SessionClass.getUserId();
        imgSave.Visible = false;
        lblSave.Visible = false;
        ((Label)Master.FindControl("lblTitle")).Text = "Basic Information";

        if (!IsPostBack)
        {
            LoadBasicInfo();
            LoadUserInfo();
            //Populate Start DropDownLists
            if (Session["UserId"] != null)
            {
                lstMonth.DataSource = Enumerable.Range(1, 12).Select(a => new
                {
                    MonthName = CultureInfo.CurrentCulture.DateTimeFormat.GetMonthName(a),

                    MonthNumber = a
                });
                lstMonth.DataBind();
                lstYear.DataSource = Enumerable.Range(DateTime.Now.Year - 99, 100).Reverse();
                lstYear.DataBind();
                lstDay.DataSource = Enumerable.Range(1, DateTime.DaysInMonth(DateTime.Now.Year, Convert.ToInt32(lstMonth.SelectedValue)));
                lstDay.DataBind();

                lstMonth.Visible = true;
                lstDay.Visible   = true;
                lstYear.Visible  = true;
            }

            // Hide dropdown if there is no data in them
            if (lstMonth.Items.Count == 0)
            {
                lstMonth.Visible = false;
            }
            if (lstDay.Items.Count == 0)
            {
                lstDay.Visible = false;
            }
            if (lstYear.Items.Count == 0)
            {
                lstYear.Visible = false;
            }
            if (Session["lstDate"] != null)
            {
                lstDay.SelectedValue = Session["lstDate"].ToString();
            }
        }
    }
Ejemplo n.º 16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        imgSave.Visible = false;
        lblSave.Visible = false;

        Userid = SessionClass.getUserId();
        ((Label)Master.FindControl("lblTitle")).Text = "Contact Information";
        if (!IsPostBack)
        {
            LoadContactInfo();
            LoadPhoneNumber();
            LoadOthersEmail();
            LoadWebsites();
        }
    }
Ejemplo n.º 17
0
    protected void Page_Load(object sender, EventArgs e)
    {
        imgSave.Visible = false;
        lblSave.Visible = false;

        Userid = SessionClass.getUserId();

        ((Label)Master.FindControl("lblTitle")).Text = "Arts & Entertainment";

        LoadDataListBooks();
        LoadDataListMusic();
        LoadDataListMovie();
        LoadDataListTelevision();
        LoadDataListGame();
    }
Ejemplo n.º 18
0
    public static void post(PostProperties post)
    {
        UserBO objUser = UserBLL.getUserByUserId(SessionClass.getUserId());
        WallBO objWall = new WallBO();

        objWall.WallOwnerUserId = post.WallOwnerUserId;
        objWall.PostedByUserId  = post.PostedByUserId;
        objWall.FirstName       = objUser.FirstName;
        objWall.LastName        = objUser.LastName;
        objWall.Post            = post.PostText;
        objWall.EmbedPost       = post.EmbedPost;
        objWall.AddedDate       = DateTime.Now;
        objWall.Type            = post.PostType;
        string wid = WallBLL.insertWall(objWall);

        List <UserFriendsBO> listtag = FriendsBLL.getAllFriendsListName(SessionClass.getUserId(), Global.CONFIRMED);

        //get the education,hometown and employer of people in list
        foreach (UserFriendsBO Useritem in listtag)
        {
            TickerBO objTicker = new TickerBO();
            objTicker.PostedByUserId    = objWall.PostedByUserId;
            objTicker.TickerOwnerUserId = Useritem.FriendUserId;
            objTicker.FirstName         = objWall.FirstName;
            objTicker.LastName          = objWall.LastName;
            objTicker.Post      = objWall.Post;
            objTicker.Title     = Global.SHARE_A_POST;
            objTicker.AddedDate = DateTime.UtcNow;
            objTicker.Type      = objWall.Type;
            objTicker.EmbedPost = objWall.EmbedPost;
            objTicker.WallId    = wid;
            TickerBLL.insertTicker(objTicker);
        }
        TickerBO objTickerUserTag = new TickerBO();

        objTickerUserTag.PostedByUserId    = SessionClass.getUserId();
        objTickerUserTag.TickerOwnerUserId = SessionClass.getUserId();
        objTickerUserTag.FirstName         = objUser.FirstName;
        objTickerUserTag.LastName          = objUser.LastName;
        objTickerUserTag.Post      = objWall.Post;
        objTickerUserTag.Title     = Global.SHARE_A_POST;
        objTickerUserTag.AddedDate = DateTime.UtcNow;
        objTickerUserTag.Type      = objWall.Type;
        objTickerUserTag.EmbedPost = objWall.EmbedPost;
        objTickerUserTag.WallId    = wid;
        TickerBLL.insertTicker(objTickerUserTag);
    }
Ejemplo n.º 19
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Userid          = SessionClass.getUserId();
        Friendsoffriend = QueryString.getQueryStringOnIndex(0);
        Type            = QueryString.getQueryStringOnIndex(1);

        if (!IsPostBack)
        {
            LoadFriendsList();
            return;
        }
        if (!Type.Equals("FOF"))
        {
            ((Label)Master.FindControl("lblTitle")).Text = "Friends Of Friend";
            return;
        }
        ((Label)Master.FindControl("lblTitle")).Text = "Mutual Friends";
    }
Ejemplo n.º 20
0
    private static string fid = "";//the person to whom suggestions are being given

    protected void Page_Load(object sender, EventArgs e)
    {
        Userid = SessionClass.getUserId();
        Fname  = QueryString.getQueryStringOnIndex(0);
        Lname  = QueryString.getQueryStringOnIndex(1);
        ((Label)Master.FindControl("lblTitle")).Text = "Suggest Friends to " + Fname + " " + Lname;
        if (!IsPostBack)
        {
            LoadSuggestions("");

            if (ddl_FilterByList.Items.Count == 0)
            {
                ddl_FilterByList.Items.Add("None");
                foreach (ObjectLayer.ListViewBO obj in ListViewBLL.getDefaultListNames())
                {
                    ddl_FilterByList.Items.Add(obj.ListName);
                }
            }
        }
    }
Ejemplo n.º 21
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Label)Master.FindControl("lblTitle")).Text = "Report";
        Userid = SessionClass.getUserId();

        if (Session["SpamPhoto"] != null)
        {
            Photo.ImageUrl = Session["SpamPhoto"].ToString();
        }
        else
        {
            Photo.ImageUrl = "../../Resources/Images/Icon/DefaultVideo.png";
        }

        ReportDropDownList.Items.Add("Spam or scam");
        ReportDropDownList.Items.Add("Nudity or pornography");
        ReportDropDownList.Items.Add("Graphic violence");
        ReportDropDownList.Items.Add("Attacks individual or group");
        ReportDropDownList.Items.Add("Hate speech or symbol");
        ReportDropDownList.Items.Add("Illegal drug use");
    }
Ejemplo n.º 22
0
 public static string getUserIdOrTempUserId()
 {
     try
     {
         if (HttpContext.Current.Request.QueryString.Count == 0)
         {
             HttpContext.Current.Session[Global.SESSION_TEMP_USER_ID] = null;
             return(SessionClass.getUserId());
         }
         else
         {
             HttpContext.Current.Session[Global.SESSION_TEMP_USER_ID] = HttpContext.Current.Request.QueryString.Get(0);
             return(HttpContext.Current.Request.QueryString.Get(0));
         }
     }
     catch (Exception ex)
     {
         HttpContext.Current.Response.Redirect("~/Default.aspx");
     }
     return(null);
 }
Ejemplo n.º 23
0
    protected void Page_Load(object sender, EventArgs e)
    {
        imgSave.Visible = false;
        lblSave.Visible = false;

        Userid = SessionClass.getUserId();
        ((Label)Master.FindControl("lblTitle")).Text = Global.FRIEND_AND_FAMILY;
        if (!IsPostBack)
        {
            LoadBasicInfo();
            LoadFriendsList();
        }

        if (lstFriends.Items.Count == 1)
        {
            lstFriends.Visible = false;
        }
        else
        {
            lstFriends.Visible = true;
        }
    }
Ejemplo n.º 24
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Label)Master.FindControl("lblTitle")).Text = "Report Abuse";

        Userid = SessionClass.getUserId();
        AboutDropDownList.Items.Add("I don't like this");
        AboutDropDownList.Items.Add("It's harassing me");
        AboutDropDownList.Items.Add("It's harassing a friend");
        if (Session["SpamPhoto"] != null)
        {
            Photo.ImageUrl = Session["SpamPhoto"].ToString();
        }
        else
        {
            Photo.ImageUrl = "../../Resources/Images/Icon/DefaultVideo.png";
        }
        SomethingElseDropDownList.Items.Add("Spam or scam");
        SomethingElseDropDownList.Items.Add("Nudity or pornography");
        SomethingElseDropDownList.Items.Add("Graphic violence");
        SomethingElseDropDownList.Items.Add("Hate speech or symbol");
        SomethingElseDropDownList.Items.Add("Illegal drug use");
    }
Ejemplo n.º 25
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["FriendID"] != null)
     {
         if (Session["FriendID"].ToString() != "")
         {
             friendID = Session["FriendID"].ToString();
         }
     }
     Userid = SessionClass.getUserId();;
     ((Label)Master.FindControl("lblTitle")).Text = "See Friendship";
     if (!IsPostBack)
     {
         LoadFriendsList();
         LoadBasicInfo();
         LoadLanguages();
         LoadUserData();
         LoadDataListTagPhotos();
         LoadWall(100);
         YouLikes();
         Comment_YouLikes();
     }
 }
Ejemplo n.º 26
0
    protected void ShareStatus(string post)
    {
        string status = post;

        if (lblFriendsWith.Text != "")
        {
            status += " with " + lblFriendsWith.Text.Remove(lblFriendsWith.Text.LastIndexOf(","));
        }

        if (lblLocation.Text != "")
        {
            status += lblLocation.Text;
        }

        UserBO objUser = new UserBO();

        objUser = UserBLL.getUserByUserId(SessionClass.getUserId());

        WallBO objWall         = new WallBO();
        string PostedByUserId  = SessionClass.getUserId();
        string WallOwnerUserId = string.Empty;

        if (SessionClass.getShareWithID() != null)
        {
            PostedByUserId = Session["UserId"].ToString();
            if (SessionClass.getShareWithID() != "")
            {
                WallOwnerUserId = SessionClass.getShareWithID();
                UserBO objFriendObj = new UserBO();
                objFriendObj = UserBLL.getUserByUserId(SessionClass.getShareWithID());

                if (!CheckBox1.Checked)
                {
                    ThreadPool.QueueUserWorkItem(new WaitCallback(sendEmail), (object)objFriendObj.Email);
                    notif(SessionClass.getShareWithID(), SessionClass.getPostID());
                }

                List <string> temp = (List <string>)SessionClass.getTaggedFriends();

                if (temp != null)
                {
                    foreach (string str in temp)
                    {
                        UserBO objFriendObj1 = new UserBO();
                        objFriendObj1 = UserBLL.getUserByUserId(str);
                        //sendEmail(objFriendObj1.Email);
                        if (!CheckBox1.Checked)
                        {
                            ThreadPool.QueueUserWorkItem(new WaitCallback(sendEmail), (object)objFriendObj1.Email);
                            notif(str, SessionClass.getPostID());
                        }
                        //Inserting follow post record for each tagged user
                        FollowPostBO fp = new FollowPostBO();
                        fp.AtId      = SessionClass.getPostID();
                        fp.UserId    = objFriendObj1.Id;
                        fp.FirstName = objFriendObj1.FirstName;
                        fp.LastName  = objFriendObj1.LastName;
                        fp.Type      = Global.WALL;

                        FollowPostBLL.insertFollowPost(fp);
                    }
                }
            }
            else
            {
                WallOwnerUserId = SessionClass.getUserId();
                UserBO objUserEmail = new UserBO();
                objUserEmail = UserBLL.getUserByUserId(SessionClass.getUserId());

                // Sending notification with which the post is beind shared
                if (!CheckBox1.Checked)
                {
                    ThreadPool.QueueUserWorkItem(new WaitCallback(sendEmail), (object)objUserEmail.Email);
                    notif(SessionClass.getShareWithID(), SessionClass.getPostID());
                }
                //Sending notification to all tagged friends
                List <string> temp = (List <string>)SessionClass.getTaggedFriends();

                if (temp != null)
                {
                    foreach (string str in temp)
                    {
                        UserBO objFriendObj1 = new UserBO();
                        objFriendObj1 = UserBLL.getUserByUserId(str);

                        if (!CheckBox1.Checked)
                        {
                            ThreadPool.QueueUserWorkItem(new WaitCallback(sendEmail), (object)objFriendObj1.Email);
                        }
                        notif(str, SessionClass.getPostID());
                        //Inserting follow post record for each tagged user
                        FollowPostBO fp = new FollowPostBO();
                        fp.AtId      = SessionClass.getPostID();
                        fp.UserId    = objFriendObj1.Id;
                        fp.FirstName = objFriendObj1.FirstName;
                        fp.LastName  = objFriendObj1.LastName;
                        fp.Type      = Global.WALL;

                        FollowPostBLL.insertFollowPost(fp);
                    }
                }
            }
        }
        else
        {
            WallOwnerUserId = SessionClass.getUserId();
            UserBO objUserEmail = new UserBO();
            objUserEmail = UserBLL.getUserByUserId(SessionClass.getUserId());

            if (!CheckBox1.Checked)
            {
                ThreadPool.QueueUserWorkItem(new WaitCallback(sendEmail), (object)objUserEmail.Email);
            }
            //Sending notification to all tagged friends
            List <string> temp = (List <string>)SessionClass.getTaggedFriends();
            if (temp != null)
            {
                foreach (string str in temp)
                {
                    UserBO objFriendObj1 = new UserBO();
                    objFriendObj1 = UserBLL.getUserByUserId(str);
                    // sendEmail(objFriendObj1.Email);
                    if (!CheckBox1.Checked)
                    {
                        ThreadPool.QueueUserWorkItem(new WaitCallback(sendEmail), (object)objFriendObj1.Email);
                        notif(str, SessionClass.getPostID());
                    }
                    //Inserting follow post record for each tagged user
                    FollowPostBO fp = new FollowPostBO();
                    fp.AtId      = SessionClass.getPostID();
                    fp.UserId    = objFriendObj1.Id;
                    fp.FirstName = objFriendObj1.FirstName;
                    fp.LastName  = objFriendObj1.LastName;
                    fp.Type      = Global.WALL;

                    FollowPostBLL.insertFollowPost(fp);
                }
            }
        }

        PostProperties postProp = new PostProperties();

        postProp.PostText        = "Share a post " + status;
        postProp.WallOwnerUserId = WallOwnerUserId;
        postProp.PostedByUserId  = PostedByUserId;
        postProp.PostType        = SessionClass.getPostType();
        postProp.EmbedPost       = SessionClass.getEmbedPost();

        PostOnWall.post(postProp);

        ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "myScript", "document.getElementById('" + txtUpdatePost.ClientID + "').value = '';", true);
        lblLocation.Text    = "";
        lblFriendsWith.Text = "";
        LoadWall(100);
        Session["ShareWithID"]   = "";
        Session["TaggedFriends"] = null;
    }
Ejemplo n.º 27
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Userid = SessionClass.getUserId();
 }
Ejemplo n.º 28
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ((Label)Master.FindControl("lblTitle")).Text = "Create new Album";
     Userid = SessionClass.getUserId();
 }
Ejemplo n.º 29
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Userid = SessionClass.getUserId();
     CreatePhoto();
     Response.Redirect("ProfilePictures.aspx");
 }
Ejemplo n.º 30
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ((Label)Master.FindControl("lblTitle")).Text = "Notifications";
     Userid = SessionClass.getUserId();
     LoadDataListMedia();
 }