I am trying to update an As400 table from a gridview object. The parameter with the conversion/ assignment issue is the datakey field which is an integer in the underlying table. When I pass the ASP:Parameter for the delete statement it works fine but in the Update statement I get the following error "ERROR [HY000] [IBM][System i Access ODBC Driver][DB2 for i5/OS]SQL0302 - Conversion error on variable or parameter *N."
When I switch the parameter to be and ASP:ControlParameter I get a different but similar error: "ERROR [22018] [IBM][System i Access ODBC Driver]Error in assignment."
This parameter is in the Where clause of my update statement. If I hard code the value it works fine.
UpdateCommand="UPDATE dmfiles.dmsevtlog0 SET CustomerNumber=?, FirstName=?, LastName=?, Address1=?, Address2 =?, City=?, State=?, Zip=?, Phone=?, Email=? Where seunq= ?"