I am trying to display tooltips for each checkbox in my checkboxlist. I need the description to come from the database. The description is pretty long though and I am getting a System.IndexOutOfRangeException
. How can I fix this?
int i = 0;
foreach (ListItem l in this.agile_factors.Items) {
while (dr.Read())
{
string description = dr["Description"].ToString();
l.Attributes["title"] = description;
}
i++;
}
conn.Close();