Live Chat Icon For mobile
Live Chat Icon

Why do i get the error message ‘Object must implement IConvertible’

Platform: ASP.NET| Category: TextBox

(I don’t understand ‘tyring to insert/update data’, ‘webcontrol is not associated with it’s property’!)
//
if you write code using parametrized query as
paramxxx.value = textbox1
it’ll show above error
to resolve it it should be
paramxxx.value =textbox1.text

//This kind of error message can occur when you are trying to insert/update data or any kind of operation which involves textbox/dropdownlist
The issue occurs if the webcontrol is not associated with its property

May be you have not associated the appropriate property of the control
i.e textBox1.Text
or dropdownlist1.SelectedItem.Value

Share with

Share on twitter
Share on facebook
Share on linkedin