//Get Product by Department ID protected void btnGetProductCatalog_Click(object sender, EventArgs e) { if (val.isValidNumber(txtDepartmentNumber.Text)) { lblInputDepartmentError.Text = ""; string deptID = txtDepartmentNumber.Text; gvProductCatalog.DataSource = api.GetProductCatalog(url, deptID); gvProductCatalog.DataBind(); } else { lblInputDepartmentError.Text = "Please enter valid number for Department Number"; } }