Link to home
Start Free TrialLog in
Avatar of kwh3856
kwh3856Flag for United States of America

asked on

Cannot implicitly convert type bool to System.Web.UI.Webcontrols.CheckBox

I am reading data from a table in a database.  The data is a type bool.  When I read the data and then try to display that data on the screen to the user I get this error message.  I oringially used a checkbox to save the data and I am trying to read the data back into the checkbox to show if it was check or not.  Can someone point out what I am doing wrong?

Here is the exact error.
Cannot implicitly convert type 'bool?' to 'System.Web.UI.WebControls.CheckBox'      


here is my code:
cbCT = myProviderReferralQueue.CT;

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of tillgeffken
tillgeffken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kwh3856

ASKER

Thank you very much.