protected void GV_Proc_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "edit") { Response.Redirect("setupproc.aspx?proc_id=" + e.CommandArgument); } else if (e.CommandName == "delete") { using (var db = new bigshopeEntities()) { int proc_id = Convert.ToInt32(e.CommandArgument); db.deleteProc(proc_id); FillCatagories(); } } }