sql - ListView update/edit/delete command error -



sql - ListView update/edit/delete command error -

working on page display results of sql query in listview. have set info connection , set automatically create update, delete , add together function db.

i have got listview populate correctly , able add together fields database (so update , select query working).

here sql statement connection.... seems complicated need do.

<asp:sqldatasource id="sqldatasource1" runat="server" connectionstring="<%$ connectionstrings:liststring %>" deletecommand="delete [pizzas] (([id] = ?) or ([id] null , ? null))" insertcommand="insert [pizzas] ([id], [type], [description], [inch9price], [inch11price], [inch13price]) values (?, ?, ?, ?, ?, ?)" oldvaluesparameterformatstring="original_{0}" providername="<%$ connectionstrings:liststring.providername %>" selectcommand="select [id], [type], [description], [inch9price], [inch11price], [inch13price] [pizzas]" updatecommand="update [pizzas] set [type] = ?, [description] = ?, [inch9price] = ?, [inch11price] = ?, [inch13price] = ? (([id] = ?) or ([id] null , ? null))"> <deleteparameters> <asp:parameter name="original_id" type="int32" /> </deleteparameters> <insertparameters> <asp:parameter name="id" type="int32" /> <asp:parameter name="type" type="string" /> <asp:parameter name="description" type="string" /> <asp:parameter name="inch9price" type="decimal" /> <asp:parameter name="inch11price" type="decimal" /> <asp:parameter name="inch13price" type="decimal" /> </insertparameters> <updateparameters> <asp:parameter name="type" type="string" /> <asp:parameter name="description" type="string" /> <asp:parameter name="inch9price" type="decimal" /> <asp:parameter name="inch11price" type="decimal" /> <asp:parameter name="inch13price" type="decimal" /> <asp:parameter name="original_id" type="int32" /> </updateparameters>

can see wrong here?

when seek , delete or update listview items error...

no value given 1 or more required parameters.

description: unhandled exception occurred during execution of current web request. please review stack trace more info error , originated in code.

exception details: system.data.oledb.oledbexception: no value given 1 or more required parameters.

any , help appreciated!

wooooow.... i'm sorry asking such stupid question. future reference, need replace "?" fields in sql statement corresponding parameter. man stupid of me...

sql listview sql-update edit

Comments

Popular posts from this blog

php - Edges appear in image after resizing -

ios8 - iOS custom keyboard - preserve state between appearances -

Delphi change the assembly code of a running process -