protected void btnPhotoChange_Click(object sender, EventArgs e) { Member member = (Member)Session["Member"]; if (member != null) { if (filePhoto.HasFile) { System.Drawing.Image ProfilePhoto = Photo.ByteArrayToImage(filePhoto.FileBytes); Photo.ProcessProfilePhoto(member, ProfilePhoto); Session["Member"] = member; ResourceFile PhotoRes = new ResourceFile(member.ProfilePhotoResourceFileID); PhotoURL = PhotoRes.FullyQualifiedURL; } } }