Detailsview not updating

J

John

Hi

I have a DetailsView that is bound to a sql server. Problem is when I press
the auto generated Edit button make some change and press the Update link I
get the below error;

Updating is not supported by data source 'mysqlserver' unless UpdateCommand
is specified.

What is the UpdatCommand that I need to specify if my Select command is
SELECT FieldA, FieldB FROM MyTable?

Thanks

Regards
 
M

Munna

Hi

I have a DetailsView that is bound to a sql server. Problem is when I press
the auto generated Edit button make some change and press the Update link I
get the below error;

Updating is not supported by data source 'mysqlserver' unless UpdateCommand
is specified.

What is the UpdatCommand that I need to specify if my Select command is
SELECT FieldA, FieldB FROM MyTable?

Thanks

Regards

Hi

follow this thread

http://forums.asp.net/p/1013611/1397014.aspx

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 
J

John

I have included the primary key in SELECT and it now works fine. The only
problem is that ID (PK) also display in DetailsView. If I make it invisible,
the update stops working? Is there a way to hide the Primary Key while
keeping it working?

Thanks

Regards

Hi

I have a DetailsView that is bound to a sql server. Problem is when I
press
the auto generated Edit button make some change and press the Update link
I
get the below error;

Updating is not supported by data source 'mysqlserver' unless
UpdateCommand
is specified.

What is the UpdatCommand that I need to specify if my Select command is
SELECT FieldA, FieldB FROM MyTable?

Thanks

Regards

Hi

follow this thread

http://forums.asp.net/p/1013611/1397014.aspx

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top