Okay I have fixed my problem and maybe this will help someone in the future. I fixed my original problem by changing the datagrid column to an asp:boundcolumn. Then I recieved the same error on the next line of code. So I determined that it really wasn't a case of what type the string was.
To...
What ever happened with this? I have almost the identical code and recieve this same error. The suggestions by chrissie1 would work on any other fields, but since this is the primary key to the database it is only shown as a Label instead of in a textbox like the other fields.
Dim iProductID...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.