protected bool codeExists(string code) { if (Manufacturer.GetManufacturerByCode(code) != null) { lblSuccess.Visible = false; lblWarning.Visible = true; lblError.Visible = false; return(true); } return(false); }