Type of conditional expression cannot be determined because there is no implicit conversion between ‘string’ and ‘System.DBNull’

param7[1].Value = tbLastName.Text.Length > 0 ? tbLastName.Text : DBNull.Value; Why is this impossible, and any suggestion what else to try? If/else for 20 parameters is just not way. Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat … Read more