protected void DeletButton_Click(object sender, EventArgs e) { try { DBservices dbs = new DBservices(); Label lSN = (Label)PHIteamNS.FindControl("lbSN"); string SN = lSN.Text; string numinbox = TBNumInBox.Text; string price = TBPrice.Text; dbs.DeletItem(SN); Response.Redirect("itamList.aspx"); } catch (Exception ex) { ErrHandler.WriteError(ex.Message); Response.Write("קיימת בעיה אנא נסה שנית מאוחר יותר"); } }