protected void PopulateTreatmentLocation() { try { oDV = AdoUDIRS.GetTreatmentLocation(); 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) { rblTreatmentPlace.DataSource = oDV; rblTreatmentPlace.DataValueField = "Id"; rblTreatmentPlace.DataTextField = "Title"; rblTreatmentPlace.DataBind(); } } catch (Exception ex) { //lblRMsg.Text = "Error 40, sorry, an error occured, " + AdoUDIRS.StrError; } }