public void DoYes(string userid) { BusinessObjects.User u = new User(); if (u.LoadByPrimaryKey(userid.Trim())) { u.MarkAsDeleted(); u.Save(); HttpContext.Current.Session["isEditUser"] = true; } }