protected void AlterarSetor(string Setor, string SIGLA) { msg = Cad.AlterarSetor(Setor, SIGLA, Convert.ToInt32(gridSetor.GetRowValues(gridSetor.FocusedRowIndex, "IDSetor").ToString()), Convert.ToInt32(Session["IDEmpresa"]), Convert.ToInt32(cbStatus.SelectedItem.Value)); this.Page.RegisterStartupScript("MSG", @"<script language='javascript'> alert('" + msg + "');</script>"); }