private void UploadPhotoAlbum(int intPhotolId)
    {
        Photo_Gallery_Image_Det objPhotoAlbum;

        using (var dbEmup = new DcjalagamDataContext())
        {
            foreach (HttpPostedFile postedFile in fupPhoto.PostedFiles)
            {
                if (postedFile.ContentLength > 0)
                {
                    objPhotoAlbum           = new Photo_Gallery_Image_Det();
                    objPhotoAlbum.GalleryId = Convert.ToInt32(intPhotolId);

                    using (System.IO.BinaryReader reader = new System.IO.BinaryReader(postedFile.InputStream))
                    {
                        objPhotoAlbum.Photo = reader.ReadBytes(postedFile.ContentLength);
                    }
                    // if (LitOperation.Text == "add")

                    dbEmup.Photo_Gallery_Image_Dets.InsertOnSubmit(objPhotoAlbum);
                }
            }
            try
            {
                dbEmup.SubmitChanges();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }