Hi all, While i am inserting the checkbox selected list item to the database table i am getting this error "Error converting data type nvarchar to bit" In the table i have a field called Disease with bit datatype. My motto to store the different type of disease in one field. Here is selecting checkbox item code: Pls somebody point me out where is my error or give some new idea how can i do the same in better way....
string typeofdisease = "";
foreach (ListItem li in CheckBoxListDisease.Items)
{
if (li.Selected)
{
typeofdisease += li.Value;
}
}
typeofdisease = typeofdisease.TrimEnd();