?
Solved

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

Posted on 2009-05-03
2
Medium Priority
?
1,270 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 2000 total points
ID: 24290252
cbCT.Checked = myProviderReferralQueue.CT;
0
 

Author Closing Comment

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

Featured Post

Industry Leaders: 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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

741 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