What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 14445 |  Welcome, Guest!   Register  Login
  Home > Community Home >

IConvertible Error Message

 Author: edwards53225 | Posted on: 6/9/2008 1:17:27 PM | Views: 64

Recommend an Articles | Recommended Articles | Search Resources | Community Home |




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.

Source Error:





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:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/25/2013 1:52:29 PM