protected void GV_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "edit") { Response.Redirect("CustomerSetup.aspx?UserID=" + e.CommandArgument); } else if (e.CommandName == "delete") { int UserID = Convert.ToInt32(e.CommandArgument); using (PTCLEntities db = new PTCLEntities()) { db.DeletePtlcUser(UserID); } FillUsers(); } }