mysql - Parameter '?' must be defined -


i've made simple asp.net app managing mysql database. i've been using visual studio 2013 , auto-generated elements such detailsview, gridview etc. app works fine locally (including queries mysql server site's hosted), when try app on webhotel error:

parameter '?' must defined

i've been in contact customer support claims, it's not serverproblem rather scriptproblem (in spite of me saying works fine locally).

an example sqldatasource in .aspx page looks this:

insertcommand="insert categories (overname, categoryid) values (?, ?)"  <insertparameters>                 <asp:parameter name="overname" type="string" />                 <asp:parameter name="categoryid" type="int32" /> </insertparameters> 

according mysql's own bug-site, issue in earlier versions of mysql connector:

http://bugs.mysql.com/bug.php?id=66060

however we're using version 6.8.3. other seemingly viable solution i've found

http://blog.tjitjing.com/index.php/2009/05/mysqldatamysqlclientmysqlexception-parameter-id-must-be-defined.html

but no avail. also, seems

any , appreciated, because @ wit's end. thank you

i think it's line causing issues..

insertcommand="insert categories (overname, categoryid) values (?, ?)" 

it should like..

insertcommand="insert categories (overname, categoryid) values (?overname, ?categoryid)" 

i believe need fields listed in there. haven't used mysql in few months how use , how in sql.

hope helps.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -