protected void PopulateRegulationsEthics() { try { oDV = AdoUDIRS.GetRegulationsEthics(); if (AdoUDIRS.BlnError) { //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError; return; } else if (oDV.Count == 0) { //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError; return; } else if (oDV.Count > 0) { chkRegulationsEthics.DataSource = oDV; chkRegulationsEthics.DataValueField = "Id"; chkRegulationsEthics.DataTextField = "Title"; chkRegulationsEthics.DataBind(); } } catch (Exception ex) { //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError; } }