473,378 Members | 1,067 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Detailsview not updating

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
Jun 27 '08 #1
2 4079
On Jun 22, 8:24*am, "John" <i...@nospam.infovis.co.ukwrote:
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 linkI
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
Jun 27 '08 #2
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

"Munna" <mu******@gmail.comwrote in message
news:6b**********************************@k37g2000 hsf.googlegroups.com...
On Jun 22, 8:24 am, "John" <i...@nospam.infovis.co.ukwrote:
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
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: TdarTdar | last post by:
HI, I have a asp 2.0 page that has a sqldatasource and a detailsview i have enabled the inserting updating deleting in the datasoure. I have a blank table that has no records. I run the page.. I...
2
by: Andrew Robinson | last post by:
Is there any way to accomplish two way data binding in a Details View with a DataSet or DataTable as the DataSource. All I want is to get an updated DataSet or DataTable back from the...
12
by: Jim Hammond | last post by:
I am passing the whole object instead or parameters in my select and update methods. I can get the updated object if I set UpdateMethod, let ASP.NET autogenerate an update button, and then press...
3
by: stuart.d.jones | last post by:
Hi, I have a DetailsView control bound to a SqlDataSource. I've got everything working nearly as I want, but here's my problem. I have a table which has a Guid as a Primary Key, and a VarChar...
2
by: David Lozzi | last post by:
Howdy, I have a DetailsView that when I fire the UpdateItem event, it doesn't update the data. The page reloads and the data is set back to the original. I'm using a Button to fire the...
0
by: 47computers | last post by:
Whenever I Update a record with a DetailsView, after the postback the DetailsView reverts to Insert mode and all the fields are blank. Is there any way, perhaps in the ItemUpdated event, that I...
0
by: =?Utf-8?B?U2F2dm91bGlkaXMgSW9yZGFuaXM=?= | last post by:
In VS2008, I have a DetailsView control with a checkboxlist control inside its Edit template. (1) I want the checkboxlist to be dynamic and display only as many checkboxes as a user setting is...
0
by: Dan | last post by:
Hi, I have a detailsview with two fields: in editmode, one is a textbox and the other is a dropdownlist. i want to update both fields using the detailsview. My problem: when clicking on the...
2
by: bednarz.thomas | last post by:
I have the following business Object(s): public class ParentObject { public ParentObject(string somestring) { ...- } ....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.