My database field is of type char(1).
and my code is like this:
Expand|Select|Wrap|Line Numbers
- string cc= null;
- if (chkdiscipline.checked)
- {
- cc = "T";
- }
- else
- cc= "F";
- insert into ccat(CC_CHECKED) values ('"+Convert.ToChar(CC)+"')
Please I tried to loop for a solution but can not find so, any help will be appreciated.
Thank You,