protected void lbtUpdateB_Click(object sender, EventArgs e) { #region [TestInput] if (txtName.Text.Trim().Equals("")) { WebMsgBox.Show("Name not null !"); txtName.Focus(); return; } if (txtAddress.Text.Trim().Equals("")) { WebMsgBox.Show("Address not null !"); txtAddress.Focus(); return; } if (txtSeats.Text.Trim().Equals("")) { WebMsgBox.Show("Seats not null !"); txtSeats.Focus(); return; } if (txtPhone.Text.Trim().Equals("")) { WebMsgBox.Show("Phone not null !"); txtPhone.Focus(); return; } #endregion try { var obj = new CinemaInfo(); obj.CinId = txtId.Value; obj.NameCi = txtName.Text; obj.Address = txtAddress.Text; obj.Seats = txtSeats.Text; obj.Phone = txtPhone.Text; obj.Image = txImage.Text; obj.Status = chkActive.Checked ? "1" : "0"; if (_insert == true) { CinemaService.Cinema_Insert(obj); } else { CinemaService.Cinema_Update(obj); } BindGrid(); LoadFilterNewsNameAutocomplete(); pnView.Visible = true; pnUpdate.Visible = false; _insert = false; } catch (Exception ex) { WebMsgBox.Show(ex.Message); } }