For my ASP .NET webpage I am using a MySQL database with a TINYINT field to indicate a boolean (0/1) value.
Thanks to stackoverflow I was able to read the field value into a Listview as a asp:Checkbox.
<asp:CheckBox ID="freight_foundCheckbox" runat="server"
Checked='<%# Convert.ToBoolean(Eval("freight_found")) %>' />
What is challenging me now is how to reverse the transaction in the InsertItemTemplate or EditItemTemplate.
The listview textbox reads as:
<asp:TextBox ID="freight_foundTextBox" runat="server"
Text='<%# Bind("freight_found") %>' />
How do I bind a asp:Checkbox value back into the database as a integer value?