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