Visual Studio non-generic method bug

G

Guest

I have just spent a very frustrating morning reading postings on this problem
and nothing seems to work. I am trying to write a demo project in VB/ASP.net
2.0 and I am unable to get any sort of edit page to work. This is extremely
simple stuff, straight out of one of Microsoft's training videos. Drag a
table on to the xsd, create queries, then create a page with a bound
DetailsView (bound to a tableadapter). Then set the DetailsView to permit
edits. (The initial display of data works fine.) No code whatsoever.

No matter what I try, when I try to update the data I wind up with the
error:ObjectDataSource 'ObjectDataSource1' could not find a non-generic
method 'Update' that has parameters: ItemName, ItemDesc, ProjectLeadID,
StartDate, FinishDate, GatesId, Resources, original_ProjectId,
original_ItemID.

Is there any way to get this to work?
 
G

Guest

Ignore previous 'expression of opinion'. Finally found enough to get it to
work, at least in this example.

Basically:
1. Go into the update command string, eliminate all references to key fields
in the SET section, and get rid of anything that ISN"T a key field in the
WHERE clause.
2. Then setup the gridview in the usual fashion, but then go into the html
and set OldValuesParameterFormatString="{0}"

When are they going to fix this?
 
G

Guest

Thanks. The PDFs may be of some use, but what are those people at ASP.net
thinking? They've forgotten to put the solution files in with the sample
code.
 

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,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top