protected void btnSave_Click(object sender, EventArgs e)
    {
        Pro.CatNo           = DropDownList1.SelectedValue;
        Pro.ProdNo          = txtProdNo.Text;
        Pro.ProdName        = txtProdName.Text;
        Pro.ProdPrice       = Convert.ToDecimal(txtPrice.Text);
        Pro.ProdQuantity    = Convert.ToInt32(txtQty.Text);
        Pro.ProdDescription = txtDesc.Text;

        if (txtProdNo.ReadOnly)
        {
            if (Pro.UpDate())
            {
                lblaMsg.Text = "Product Updated Successfully";
                MultiView1.ActiveViewIndex = 0;
            }

            else
            {
                lblMasg2.Text = "Product Not Updated";
            }
        }

        else
        if (Pro.Add())
        {
            lblaMsg.Text = "Product Added Successfully";
            MultiView1.ActiveViewIndex = 0;
        }
        else
        {
            lblMasg2.Text = "Product Not Added ";
        }

        if (Filup.HasFile)
        {
            Filup.SaveAs(Server.MapPath(("../ProImage") + "//" + txtProdNo.Text + ".jpg"));
        }
    }