protected void AlterarCargo(string Cargo) { msg = Cad.AlteraCargo(Cargo, Convert.ToInt32(gridCargo.GetRowValues(gridCargo.FocusedRowIndex, "IDCargo").ToString())); this.Page.RegisterStartupScript("MSG", @"<script language='javascript'> alert('" + msg + "');</script>"); }