Visual Studio non-generic method bug

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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?
 
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.
 
Back
Top