Exemplo n.º 1
0
    protected void OKbtn_Click(object sender, EventArgs e)
    {
        //add the new record
        Add();
        //create instance of the class
        clsOrder AnOrder = new clsOrder();
        //variable to store result
        Boolean Found = false;

        Found = AnOrder.FindTheOrderNo();
        //if the operation is successful
        if (Found == true)
        {
            lblOrderNo.Text = "Your Order Number is: " + Convert.ToString(AnOrder.OrderNo);
        }

        else
        {
            lblOrderNo.Text = "";
        }
    }