예제 #1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            int id = int.Parse(txtID.Text);

            string response = ProductController.CheckDelete(id);

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