protected void BindDuplicateInvoice(string InvoiceID) { try { DataTable dt = BLL_POLOG_Register.POLOG_Get_DuplicateInvoice(InvoiceID); if (dt.Rows.Count > 0) { lblDuplicateInvoice.Text = "Duplicated invoice Reference Found"; divDuplicateInvoice.Visible = true; gvDuplieCateinvoice.DataSource = dt; gvDuplieCateinvoice.DataBind(); } else { divDuplicateInvoice.Visible = false; gvDuplieCateinvoice.DataSource = dt; gvDuplieCateinvoice.DataBind(); } } catch { } { } }