Here I have created sample that will help you out.
I referred below article
HTML
<div>
<asp:CheckBoxList ID="chkFruits" runat="server">
</asp:CheckBoxList>
</div>
C#
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
string checkBoxValues = "Mango,Orange,Graps,Apple,Banana";
foreach (string value in checkBoxValues.Split(','))
{
ListItem item = new ListItem();
item.Text = value;
item.Value = value;
chkFruits.Items.Add(item);
}
}
}
VB
Protected Sub Page_Load(sender As Object, e As EventArgs)
If Not Me.IsPostBack Then
Dim checkBoxValues As String = "Mango,Orange,Graps,Apple,Banana"
For Each value As String In checkBoxValues.Split(","C)
Dim item As New ListItem()
item.Text = value
item.Value = value
chkFruits.Items.Add(item)
Next
End If
End Sub
Screenshot