how to make boolean value to a checkbox?

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
johnq126
User
Posts: 6

how to make boolean value to a checkbox?

Post by johnq126 »

one of column is boolean. and right now, it shows 1 or 0. I need to make it a checkbox. is it possible?


motfs
User
Posts: 258

Post by motfs »

Click "Checkbox" in Edit Tag. See Field Setup->Edit Tag in help file.


johnq126
User
Posts: 6

Post by johnq126 »

thank you so much. now in the edit page, it has 2 checkboxes for yes and no. I can select both of them. how can I make it that when user selects Yes, no will be automatically unchecked and vice versa.

also on the list page, this boolean column I want to show one check box there, if value is true, it should show a checked checkbox, if value is false, show a unchecked checkbox.


motfs
User
Posts: 258

Post by motfs »

Do you set the field as Boolean? What database you use? If you use Access and select "checkbox", only one checkbox will show in Edit/Add Page. And it will display as checkbox in list page.

You can download the demo project from this site to see the setup, http://www.hkvstore.com/aspnetmaker/demo.asp.


Post Reply