private void PopulateData() { List <MDiseaseDTO> lstdisease = new List <MDiseaseDTO>(); lstdisease = objITransactionBusiness.GetMDiseases(); if (lstdisease != null && lstdisease.Count > 0) { ListView1.DataSource = lstdisease; ListView1.DataBind(); } else { ListView1.DataSource = null; ListView1.DataBind(); DPLV1.DataBind(); } }