Solved

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

Posted on 2009-05-03
2
1,248 Views
Last Modified: 2013-12-17
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

0
Comment
Question by:kwh3856
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
tillgeffken earned 500 total points
ID: 24290252
cbCT.Checked = myProviderReferralQueue.CT;
0
 

Author Closing Comment

by:kwh3856
ID: 31577343
Thank you very much.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question