Can someone help me as to why I am getting this error message?
Object must implement IConvertible.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Object must implement IConvertible.
Line 50: cmdCommandIns.Parameters.Add("@otherAntibiotics", SqlDbType.VarChar, 100).Value = chbantibiotics.SelectedItem
Line 51: cmdCommandIns.Parameters.Add("@otherAntibioticsDescribed", SqlDbType.VarChar, 40).Value = chbantibiotics.SelectedItem
Line 52: cmdCommandIns.ExecuteNonQuery()
Line 53: ... Go to the complete details ...
Found interesting? Add this to: