private void LoadProducts()
    {
        prodObj        = new ProductClass();
        prodObj.prodId = "%";
        DataTable dtProd = prodObj.GetProductMasterByProdId();

        rptProduct.DataSource = dtProd.Rows.Count > 0 ? dtProd : null;
        rptProduct.DataBind();
    }
    private void EditProduct()
    {
        prodObj = new ProductClass();
        btnSave.CommandArgument = Request.QueryString["prodId"];
        prodObj.prodId          = btnSave.CommandArgument;
        DataTable dtProd = prodObj.GetProductMasterByProdId();

        if (dtProd.Rows.Count == 1)
        {
            txtDescription.Text = dtProd.Rows[0]["description"].ToString();
            txtUnitPrice.Text   = dtProd.Rows[0]["unitPrice"].ToString();
            btnSave.Text        = "Update";
        }
    }