I am using a MSsql Database and trying to bind a checkbox to one of the fields. The field in the DB is a Bit so it is looking for a 1 or 0, but the asp:checkbox deals with Boolean values. How do I go about doing this binding?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If the value returned from the database is of type int, then user Convert.ToBoolean