示例#1
0
        protected void btnInsert_Click(object sender, EventArgs e)
        {
            string name         = txtName.Text;
            string str_price    = txtPrice.Text;
            string str_quantity = txtQuantity.Text;

            string response = ProductController.CheckInsert(name, str_price, str_quantity);

            if (response == "")
            {
                lblError.Text = "";
                FillGrid();
            }
            else
            {
                lblError.Text = response;
            }
        }