Ejemplo n.º 1
0
    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("קיימת בעיה אנא נסה שנית מאוחר יותר");
        }
    }
Ejemplo n.º 2
0
    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("קיימת בעיה אנא נסה שנית מאוחר יותר");
        }
    }