Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckBox State

Status
Not open for further replies.

drikoudis

Programmer
Nov 1, 2003
53
GR
Hi, a new problem for my app... I have a DataBase in Access with some fields. Some of them are CheckBoxes. I know the CheckBox have triple state(true, false, null) and the first state is null. In my app when i read from the DB those CheckBoxes the null state converted to false. How i can have triple state in ASP .Net if i read from Access?

Thanks, John..
 
Checkboxes don't have triple state. They are either checked or they're not.

There's not going to be a straight mapping from the data in Access.

My suggestion would be to nix the triple state in Access, too, by setting the field to required, and giving it a default value of false (or true if that works for you). Boolean fields should be either true or false, IMHO.

-paul

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top