I get this error " String was not recognized as a valid Boolean. "
NewsletterOptOutCheckBox is a checkbox within my webform. I am trying to insert it into a database table along with like 10 other values. I have tested it with all the other values which are mostly textboxes and it works great.
How do I pass a checkbox from the visual basic code into the ms sql db column "Opt_Out" of type BIT?
DataSource.InsertParameters.Add("Opt_Out", TypeCode.Boolean, NewsletterOptOutCheckBox.ToString())