Object must implement IConvertible C#

I did a simple thing when I got this error. I bound a FormView control to SQLDataSource. The SQLDataSource was accepting a parameter from GridView in turn. The code was straightforward but I got this error.

Found out the problem was in here

The designer had added Type=”String”. You just have to remove it and the error will go away. So it should look like this


Object must implement IConvertible.

Leave a Reply

Your email address will not be published. Required fields are marked *