protected void btnDelete_Click(object sender, EventArgs e)
    {
        CNNo = Convert.ToInt32(txtCnno.Text.Trim());
        CreditNote obdelcn = new CreditNote();

        obdelcn.strFY = Convert.ToInt32(strFY);
        obdelcn.CNNo  = CNNo;
        obdelcn.DeleteCN();

        MessageBox("CNNo.  " + CNNo + "  Deleted");
        grdcn.DataBind();
        PnlPrint.Visible = false;
        btngetcust1();
    }