Пример #1
0
        private void btndelete_Click(object sender, System.EventArgs e)
        {
            int    InvoiceID = Convert.ToInt32(Request.QueryString["InvoiceID"].ToString());
            string Category  = Request.QueryString["InvoiceType"];

            Invoice.Invoice objinvoice = new Invoice.Invoice();

            if (objinvoice.Deleteinvoicecreditnote(InvoiceID, Category))
            {
                lblMessege.Text = "Deleted successfully";
                Response.Write("<script>alert('Invoice deleted successfully');</script>");
                Response.Write("<script>opener.location.reload(true);</script>");
                Response.Write("<script>self.close();</script>");
            }

            else
            {
                lblMessege.Text = "Error in deleting document.";
            }
        }