I'm making a web form to display ads.
I created a simple SQL database and added a gridview.
Let's say this is the datatable:
Ad-URL | Text | Keywords | Checkbox |
---|---|---|---|
test.com | bla | blaa | |
test2.com | bla | blaa |
How to add a checkbox for each entry so that if it's checked it will be published, and if not it won't be published?
In SQL the type is called BIT
It will take true/false 1/0 values