protected void Delete_Click(object sender, System.Web.UI.ImageClickEventArgs e) { ImageButton btn = (ImageButton)sender; //bool excluir = true; t03_projeto t03 = new t03_projeto(); { t03.t03_cd_projeto = Int32.Parse(btn.CommandArgument.ToString()); t03.Delete(); pb.saveLog(cd_usuario, t03.t03_cd_projeto, "", "t03_projeto", "delete", t03.t03_cd_projeto.ToString()); } GridBind("order by nm_projeto"); lblMsg.Text = pb.Message("Exclusão realizada com sucesso!", "ok"); lblMsg.Visible = true; }