protected void btn_Photos_Click(object sender, EventArgs e)
        {
            Photo photo = new Photo();

            string path = "~/uploads/" + Membership.GetUser().ProviderUserKey.ToString();

            bool IsUpload = photo.ImageResize(FileUploads, path, photo);

            if (IsUpload == true)
            {
                photo.ContextId = Guid.Parse(Membership.GetUser().ProviderUserKey.ToString());
                photo.ContextSubId = HouseId; // house id
                photo.ContextTypeId = (int)Enums.ContextType.Landlord;
                photo.ContextSubTypeId = (int)Enums.ContextSubType.House;
                photo.PhotoCategoryId = (int)Enums.PhotoCategory.House_Picture;

                photo.Insert(photo);
            }

            Response.Redirect("~/Land_load/Land_load_Profile.aspx");
        }
        protected void btn_Photos_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {

                Photo photo = new Photo();

                string path = "~/uploads/" + Membership.GetUser().ProviderUserKey.ToString();

                bool IsUpload = photo.ImageUpload(FileUploads, path, photo);

                if (IsUpload == true)
                {
                    photo.ContextId = Guid.Parse(Membership.GetUser().ProviderUserKey.ToString());
                    photo.ContextTypeId = (int)Enums.ContextType.Student;
                    photo.PhotoCategoryId = (int)Enums.PhotoCategory.House_Life_Picture;

                    photo.Insert(photo);
                }

                loadimage();

            }
        }
        protected void ButtonCoverImage_Click(object sender, EventArgs e)
        {
            Photo photo = new Photo();
            string path = "~/uploads/" + Membership.GetUser().ProviderUserKey.ToString() ;

               bool IsUpload = photo.ImageUpload(FileUploadCoverImage, path, photo);

               if (IsUpload == true)
               {
               photo.ContextId = Guid.Parse(Membership.GetUser().ProviderUserKey.ToString());
               photo.ContextTypeId = (int)Enums.ContextType.Student;
               photo.PhotoCategoryId = (int)Enums.PhotoCategory.Cover_Picture;

               photo.Insert(photo);
               }

            Response.Redirect("~/Student/Student_Profile.aspx");
        }