protected void btnSave_Click(object sender, EventArgs e)
    {
        Cat.CatNo          = txtNum.Text;
        Cat.CatName        = txtName.Text;
        Cat.CatDescription = txtDesc.Text;

        if (txtNum.ReadOnly)
        {
            if (Cat.UpDate())
            {
                lblaMsg.Text = "Category Updated Successfully";
                MultiView1.ActiveViewIndex = 0;
            }

            else
            {
                lblaMsg.Text = "Category Not Updated";
            }
        }

        else
        if (Cat.Add())
        {
            lblaMsg.Text = "Category Added Successfully";
            MultiView1.ActiveViewIndex = 0;
        }
        else
        {
            lblaMsg.Text = "Category Not Added , Please Change Category Number";
        }

        if (Filup.HasFile)
        {
            Filup.SaveAs(Server.MapPath(("..\\ImgImgs") + "\\" + txtNum.Text + ".jpg"));
        }
    }