When I edit an entry in the time entry gridview and click on save image button to update the entry, I get:
ObjectDataSource 'ProjectListDataSource' could not find a non-generic method 'UpdateTimeEntry' that has parameters: CategoryName, Duration, ReportedDate, LogDate, UserName, ProjectName, Description, Id.
I don't know where it is getting the ProjectName parameter for updating. The Update method does not list a ProjectName either. This is the Datasource:
<asp:ObjectDataSource
ID="ProjectListDataSource" runat="server"
TypeName="ASPNET.StarterKit.BusinessLogicLayer.TimeEntry"SelectMethod="GetTimeEntriesByUserNameAndDates"
DeleteMethod="DeleteTimeEntry" UpdateMethod="UpdateTimeEntry"
OldValuesParameterFormatString="{0}">
<DeleteParameters>
<asp:Parameter Name="Id" Type="Int32" />
</DeleteParameters>
<SelectParameters>
<asp:ControlParameter Name="userName" ControlID="UserList" PropertyName="SelectedValue"
Type="String" />
<asp:ControlParameter Name="startingDate" ControlID="WeekEnding2" PropertyName="Text"
Type="DateTime" />
<asp:ControlParameter Name="endDate" ControlID="WeekEnding2" PropertyName="Text"
Type="DateTime" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="Id" Type="Int32" />
<asp:Parameter Name="CategoryName" Type="String" />
<asp:Parameter Name="Duration" Type="Decimal" />
<asp:Parameter Name="ReportedDate" Type="DateTime" />
<asp:Parameter Name="LogDate" Type="string" />
<asp:ControlParameter Name="UserName" ControlID="UserList" PropertyName="SelectedValue" Type="String" />
</UpdateParameters>
</asp:ObjectDataSource>