private void UpdataPhoto(int id) { PhotoUpload photo = new PhotoUpload(); if (FileUpload1.HasFile) { FileModel fileModel = photo.Upload(FileUpload1.FileName); FileUpload1.SaveAs(fileModel.AbsoluteFileName); if (photo.SavePhotoPath(fileModel.RelativeFileName, id)) { Image1.ImageUrl = fileModel.RelativeFileName; } } }