Hi everyone,
I love the idea of generics and am trying to put it to use,
following the samples given on www.asp.net tutorials, specifically:
http://www.asp.net/QuickStart/util/srcview.aspx?
path=~/aspnet/samples/data/GridViewObject.src&file=GridViewObject_vb\
GridViewObject_vb.aspx&lang=VB+Source
I've set up my GridView to access the ObjectDataSource, and my ODS
is set up as:
<asp:ObjectDataSource ID="AllergyODS" Runat="server"
TypeName="AllergiesComponent"
SelectMethod="GetAllergies" UpdateMethod="UpdateAllergy"
DataObjectTypeName="Allergy" SortParameterName="SortExpression">
</asp:ObjectDataSource>
However, whenever I hit Update, I get the dreaded:
ObjectDataSource 'AllergyODS' could not find a non-generic
method 'UpdateAllergy' that takes parameters of type 'Allergy'.
Does anybody have a clue:
a) why this doesn't work as per the examples supplied on asp.net?
b) how I can find the signature of the function that it is trying to
call?
Thanks,
Dave