ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters:

Error Message: 

Server Error in '/call in' Application.
--------------------------------------------------------------------------------

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: Name, Date, Shift, Call_Answered, Left_Message, Call_Returned, Available, Complete, original_TaskID, Call Answered, Left Message, Call Returned.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: Name, Date, Shift, Call_Answered, Left_Message, Call_Returned, Available, Complete, original_TaskID, Call Answered, Left Message, Call Returned.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

Stack Trace:


[InvalidOperationException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: Name, Date, Shift, Call_Answered, Left_Message, Call_Returned, Available, Complete, original_TaskID, Call Answered, Left Message, Call Returned.]
   System.Web.UI.WebControls.ObjectDataSourceView.GetResolvedMethodData(Type type, String methodName, IDictionary allParameters, DataSourceOperation operation) +1440
   System.Web.UI.WebControls.ObjectDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +2292
   System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +179
   System.Web.UI.WebControls.GridView.HandleUpdate(GridViewRow row, Int32 rowIndex, Boolean causesValidation) +1140
   System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +835
   System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) +162
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
   System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) +118
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +107
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +175
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +244
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3840

 Code I am using:

<%

@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="tasks.aspx.vb" Inherits="tasks" title="Untitled Page" %>

<

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

</

asp:Content>

 

 

<

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

<

div class="category">

Current Shift Filter:

<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">

<asp:ListItem Value="False">Open</asp:ListItem>

<asp:ListItem Value="True">Closed</asp:ListItem>

</asp:DropDownList>

</

div>

<

div class="ToDoHeader">

<

h2> Call In Report</h2>

</

div>

&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<asp:GridView ID="GridView1"

runat="server" AutoGenerateColumns="False" DataKeyNames="TaskID" DataSourceID="ObjectDataSource1">

<Columns>

<asp:CommandField ShowEditButton="True" />

<asp:BoundField DataField="TaskID" HeaderText="TaskID" InsertVisible="False" ReadOnly="True"

SortExpression="TaskID" />

<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />

<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />

<asp:BoundField DataField="Shift" HeaderText="Shift" SortExpression="Shift" />

<asp:CheckBoxField DataField="Call Answered" HeaderText="Call Answered" SortExpression="Call Answered" />

<asp:CheckBoxField DataField="Left Message" HeaderText="Left Message" SortExpression="Left Message" />

<asp:CheckBoxField DataField="Call Returned" HeaderText="Call Returned" SortExpression="Call Returned" />

<asp:CheckBoxField DataField="Available" HeaderText="Available" SortExpression="Available" />

<asp:CheckBoxField DataField="Complete" HeaderText="Complete" SortExpression="Complete" />

</Columns>

</asp:GridView>

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"

InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetTasksByStatus"

TypeName="DataSet2TableAdapters.new_tasksTableAdapter" UpdateMethod="Update">

<DeleteParameters>

<asp:Parameter Name="Original_TaskID" Type="Int32" />

</DeleteParameters>

<UpdateParameters>

<asp:Parameter Name="Name" Type="String" />

<asp:Parameter Name="Date" Type="DateTime" />

<asp:Parameter Name="Shift" Type="String" />

<asp:Parameter Name="Call_Answered" Type="Boolean" />

<asp:Parameter Name="Left_Message" Type="Boolean" />

<asp:Parameter Name="Call_Returned" Type="Boolean" />

<asp:Parameter Name="Available" Type="Boolean" />

<asp:Parameter Name="Complete" Type="Boolean" />

<asp:Parameter Name="Original_TaskID" Type="Int32" />

</UpdateParameters>

<SelectParameters>

<asp:ControlParameter ControlID="DropDownList1" Name="IsComplete" PropertyName="SelectedValue"

Type="Boolean" />

</SelectParameters>

<InsertParameters>

<asp:Parameter Name="Name" Type="String" />

<asp:Parameter Name="Date" Type="DateTime" />

<asp:Parameter Name="Shift" Type="String" />

<asp:Parameter Name="Call_Answered" Type="Boolean" />

<asp:Parameter Name="Left_Message" Type="Boolean" />

<asp:Parameter Name="Call_Returned" Type="Boolean" />

<asp:Parameter Name="Available" Type="Boolean" />

<asp:Parameter Name="Complete" Type="Boolean" />

</InsertParameters>

</asp:ObjectDataSource>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;

&nbsp;&nbsp;

</

asp:Content>

 

SCREENSHOT:

http://i118.photobucket.com/albums/o104/coryb77/Clipboard01.jpg

As soon as I click update I get the error.  The columns "Call Answered, Left Message" are just to have a 1 or 0 value so I set them to Bit data type in SQL server.  Any last resort suggestions?

0
cbailey77
1/11/2007 1:17:59 PM
asp.net.object-datasource 16182 articles. 0 followers. Follow

6 Replies
1080 Views

Similar Articles

[PageSpeed] 13

try remove "original_" from

OldValuesParameterFormatString="original_{0}"

 

0
Cagatay
1/11/2007 2:16:54 PM
Removed it, still the same...
0
cbailey77
1/11/2007 3:20:58 PM

When I removed that I got -

 

Server Error in '/call in' Application.

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: Name, Date, Shift, Call_Answered, Left_Message, Call_Returned, Available, Complete, Original_TaskID, Call Answered, Left Message, Call Returned, TaskID.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: Name, Date, Shift, Call_Answered, Left_Message, Call_Returned, Available, Complete, Original_TaskID, Call Answered, Left Message, Call Returned, TaskID.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: Name, Date, Shift, Call_Answered, Left_Message, Call_Returned, Available, Complete, Original_TaskID, Call Answered, Left Message, Call Returned, TaskID.]
   System.Web.UI.WebControls.ObjectDataSourceView.GetResolvedMethodData(Type type, String methodName, IDictionary allParameters, DataSourceOperation operation) +1440
   System.Web.UI.WebControls.ObjectDataSourceView.ExecuteUpdate(IDictionary keys, IDictionary values, IDictionary oldValues) +2292
   System.Web.UI.DataSourceView.Update(IDictionary keys, IDictionary values, IDictionary oldValues, DataSourceViewOperationCallback callback) +179
   System.Web.UI.WebControls.GridView.HandleUpdate(GridViewRow row, Int32 rowIndex, Boolean causesValidation) +1140
   System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +835
   System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) +162
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
   System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) +118
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +56
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +107
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +175
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +31
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +32
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +244
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3840

 

Added TaskID to the parameters that it cant find

0
cbailey77
1/11/2007 3:36:32 PM

cbailey77:
Removed it, still the same...

It is not resolved because what causes that error is more than one issue, check the thread below for most known solutions.  Hope this helps.

http://forums.asp.net/thread/1499586.aspx


Kind regards,
Gift Peddie
0
Caddre
1/11/2007 4:16:44 PM

I've tried those fixes, and have still yet to find the problem

Take a look at this screen shot.

http://i118.photobucket.com/albums/o104/coryb77/Clipboard02.jpg

I can update any of the fields here from this screen shot you see and it works fine.  Notice the column names they are as follows -

 Because   Me  You   Today   <  When I go in to the table in SQL server 2000 to rename them to -  Call Answered  Left Message  Available  Call Returned  which is what I want them to be called, SQL server puts [ ] around the name and If i leave it this way I get the update error.  But when I change the names to Because   Me  You   Today  it works.  They are all nvarchar data types and I want to change them to BIT data types and I thought that was where the problem was coming from but clearly without having any of the columns set as Bit it can't be the issue.

Ill post the code that works with the columns named Because   Me  You   Today  and Ill post the code that doesnt work with the columns named properly.

Working code :

 

 

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="tasks.aspx.vb" Inherits="tasks" title="Untitled Page" %>

<

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

</

asp:Content>

 

 

<

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

<

div class="category">

Current Shift Filter:

<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">

<asp:ListItem Value="False">Open</asp:ListItem>

<asp:ListItem Value="True">Closed</asp:ListItem>

</asp:DropDownList>

</

div>

<

div class="ToDoHeader">

<

h2> Call In Report</h2>

</

div>

&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<asp:GridView ID="GridView1" runat="server"

AutoGenerateColumns="False" DataKeyNames="TaskID" DataSourceID="ObjectDataSource1">

<Columns>

<asp:CommandField ShowEditButton="True" />

<asp:BoundField DataField="TaskID" HeaderText="TaskID" InsertVisible="False" ReadOnly="True"

SortExpression="TaskID" />

<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />

<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />

<asp:BoundField DataField="Shift" HeaderText="Shift" SortExpression="Shift" />

<asp:BoundField DataField="Because" HeaderText="Because" SortExpression="Because" />

<asp:BoundField DataField="Me" HeaderText="Me" SortExpression="Me" />

<asp:BoundField DataField="You" HeaderText="You" SortExpression="You" />

<asp:BoundField DataField="Today" HeaderText="Today" SortExpression="Today" />

<asp:CheckBoxField DataField="Complete" HeaderText="Complete" SortExpression="Complete" />

</Columns>

</asp:GridView>

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"

InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetTasksByStatus"

TypeName="reportingTableAdapters.reportsTableAdapter" UpdateMethod="Update">

<DeleteParameters>

<asp:Parameter Name="Original_TaskID" Type="Int32" />

</DeleteParameters>

<UpdateParameters>

<asp:Parameter Name="Name" Type="String" />

<asp:Parameter Name="Date" Type="DateTime" />

<asp:Parameter Name="Shift" Type="String" />

<asp:Parameter Name="Because" Type="String" />

<asp:Parameter Name="Me" Type="String" />

<asp:Parameter Name="You" Type="String" />

<asp:Parameter Name="Today" Type="String" />

<asp:Parameter Name="Complete" Type="Boolean" />

<asp:Parameter Name="Original_TaskID" Type="Int32" />

</UpdateParameters>

<SelectParameters>

<asp:ControlParameter ControlID="DropDownList1" Name="IsComplete" PropertyName="SelectedValue"

Type="Boolean" />

</SelectParameters>

<InsertParameters>

<asp:Parameter Name="Name" Type="String" />

<asp:Parameter Name="Date" Type="DateTime" />

<asp:Parameter Name="Shift" Type="String" />

<asp:Parameter Name="Because" Type="String" />

<asp:Parameter Name="Me" Type="String" />

<asp:Parameter Name="You" Type="String" />

<asp:Parameter Name="Today" Type="String" />

<asp:Parameter Name="Complete" Type="Boolean" />

</InsertParameters>

</asp:ObjectDataSource>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;

&nbsp;&nbsp;

</

asp:Content>

Not working Code :

http://i118.photobucket.com/albums/o104/coryb77/Clipboard03.jpg

 http://i118.photobucket.com/albums/o104/coryb77/Clipboard04.jpg

 

 

<%

@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="tasks.aspx.vb" Inherits="tasks" title="Untitled Page" %>

<

asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

</

asp:Content>

 

 

<

asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

<

div class="category">

Current Shift Filter:

<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">

<asp:ListItem Value="False">Open</asp:ListItem>

<asp:ListItem Value="True">Closed</asp:ListItem>

</asp:DropDownList>

</

div>

<

div class="ToDoHeader">

<

h2> Call In Report</h2>

</

div>

&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;<asp:GridView ID="GridView1"

runat="server" AutoGenerateColumns="False" DataKeyNames="TaskID" DataSourceID="ObjectDataSource1">

<Columns>

<asp:CommandField ShowEditButton="True" />

<asp:BoundField DataField="TaskID" HeaderText="TaskID" InsertVisible="False" ReadOnly="True"

SortExpression="TaskID" />

<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />

<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />

<asp:BoundField DataField="Shift" HeaderText="Shift" SortExpression="Shift" />

<asp:BoundField DataField="Call Answered" HeaderText="Call Answered" SortExpression="Call Answered" />

<asp:BoundField DataField="Left Message" HeaderText="Left Message" SortExpression="Left Message" />

<asp:BoundField DataField="Available" HeaderText="Available" SortExpression="Available" />

<asp:BoundField DataField="Call Returned" HeaderText="Call Returned" SortExpression="Call Returned" />

<asp:CheckBoxField DataField="Complete" HeaderText="Complete" SortExpression="Complete" />

</Columns>

</asp:GridView>

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"

InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetTasksByStatus"

TypeName="reportingTableAdapters.reportsTableAdapter" UpdateMethod="Update">

<DeleteParameters>

<asp:Parameter Name="Original_TaskID" Type="Int32" />

</DeleteParameters>

<UpdateParameters>

<asp:Parameter Name="Name" Type="String" />

<asp:Parameter Name="Date" Type="DateTime" />

<asp:Parameter Name="Shift" Type="String" />

<asp:Parameter Name="Call_Answered" Type="String" />

<asp:Parameter Name="Left_Message" Type="String" />

<asp:Parameter Name="Available" Type="String" />

<asp:Parameter Name="Call_Returned" Type="String" />

<asp:Parameter Name="Complete" Type="Boolean" />

<asp:Parameter Name="Original_TaskID" Type="Int32" />

</UpdateParameters>

<SelectParameters>

<asp:ControlParameter ControlID="DropDownList1" Name="IsComplete" PropertyName="SelectedValue"

Type="Boolean" />

</SelectParameters>

<InsertParameters>

<asp:Parameter Name="Name" Type="String" />

<asp:Parameter Name="Date" Type="DateTime" />

<asp:Parameter Name="Shift" Type="String" />

<asp:Parameter Name="Call_Answered" Type="String" />

<asp:Parameter Name="Left_Message" Type="String" />

<asp:Parameter Name="Available" Type="String" />

<asp:Parameter Name="Call_Returned" Type="String" />

<asp:Parameter Name="Complete" Type="Boolean" />

</InsertParameters>

</asp:ObjectDataSource>

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

&nbsp;

&nbsp;&nbsp;

</

asp:Content>

 

 

 


 

0
cbailey77
1/11/2007 7:45:54 PM

If you look at the screen shot of my table in SQL server you'll notice the column "Answered"

http://i118.photobucket.com/albums/o104/coryb77/Clipboard05.jpg 

 

 When I try to edit the fields now and place a check mark in the Answered column it doesnt' retain the value but I dont get any error except the one in my grid view - 

There was an error rendering the control
The data in the CheckBoxField 'Answered' could not be parsed as a boolean value.  Try using a BoundField instead.

Help?

0
cbailey77
1/12/2007 2:10:24 PM
Reply:

Similar Artilces:

Where do I look in my source to find the code that is causing this error ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters
Hi; My problem began when I deleted the key field in my grid view. I checked my web page code and also corrected my update command and parameters in my table adapter. I would really rather not start over. Thanks for any insights !         GMann Hi, Can you provide the code? Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Hi;   Problem S O L V E D !   I thought ...

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'name_of_the Method' that has parameters
Hi am getting this error when am trying to insert new record in Details View   ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'insertdata' that has parameters    The data source for the details view is objectdatasoure which configured on class located in app_code folder   the class contain 2 methods one for selecting and one for inserting  ,     please anyone can help to solve this problem 1) Did you define the method that will handle the inserting for the ObjectDataSource control? (posting the code from the .as...

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'GetRatings' that has no parameters.
I've been studying this tutorial over here at: http://quickstarts.asp.net/QuickStartv20/aspnet/doc/data/databases.aspx#updatedelete but I can't seem to get my gridview working.  I want to be able to edit the fields and also delete an entire row from the table if needed. I hard coded in the update and delete commands into my objectdatasource but I still get the error message. Also, I can't even refresh the aspx page: <%@ Page Language="VB" MasterPageFile="~/templates/admin.master" AutoEventWireup="false" CodeFile="article_comments.as...

ObjectDataSource 'SearchDataSource1' could not find a non-generic method 'Update' that has parameters ...
Sorry to post yet another question about this.  I've spent 5 days googling and found great solutions such as:  In Design Mode on your aspx click on your SearchDataSource and change the OldValuesParameterFormatString from "Origional_{0}" to "{0}" without the quotes.  I've also read that you should set the ID columns read-only property to false.  I've also read several posts where someone has just mis-spelled something or the parameters in their Update didn't match their DataSet.  So I've seen many happy people and I'm a hope...

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Insert' that has parameters
Same problem 99% of all Object programmers in VS2005 are having when using Insert and XSD's.  I have a DETAILS VIEW (not a gridview) for INSERTING records into a database.  XSD has been built with ONE stored procedure added to it (thought I'd narrow it down).  The spInsertRecord (for example) is connected to the INSERT dropdown on the datasource and the SELECT procedure (of course, we HAVE to have one of those or you jsut don't get the "next" button in the wonderful wizard of MS) set to CreateObjRef (because I've already tried creating a SP just for ...

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'updateEvent' that has parameters
Hello, I am a J2EE developer who is now look at ASP.NET 2. I have written two very basic aspx pages and a Eventsdb.cs as the data access layer. However I have encountered the following error when the broswer redirect to the second aspx page : "ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'updateEvent' that has parameters". The first aspx page tags are as follows: <form id="form1" runat="server"> <div> <div style="width: 594px; height: 37px"> <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="ObjectDataSource1" DataTextFi...

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'GetData' that has parameters: CustomerID, .
Hi all!  I'm getting this error in my page. I have a ReportViewer object and its ObjectDataSource. I've seen some fixes changing the OldValuesParameterFormatString from "original_{0}" to "{0}", but no way. Any idea? <rsweb:ReportViewer ID="RVScan" runat="server" Font-Names="Verdana" Font-Size="8pt" Height="100px" Width="150px" ShowToolBar="False"> <LocalReport ReportPath="ReportScan.rdlc"> <DataSources> <rsweb:ReportDataSource DataSourceId="ObjectDataSource2" Name="MonitorDS_AuditMonitor" /> </DataSources> </LocalReport> </rsweb:Repo...

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'xxx' that has [no] parameters: yyyyyyyyy
Please help! This is a simple form with an Add button, a Gridview with Edit and Delete enabled, and an ObjectDataSource. The ObjectDataSource references a class in the App_Code directory, which provides sub routines for the Get, Insert, Update, and Delete actions. Each subroutine calls a stored procedure. The Insert capability works fine, and the GridView displays the data using the Get method just fine as well. However, there are two errors: First is on the UpdateMethod:ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'UpdateObject' that has parameters: objectText....

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'FillMenusByLocation' that has parameters: @locationId
I'm trying to use a typed dataset and ObjectDataSource binding to SQLX db using a foreign key to filter the returned result set to display in a GridView.The error is generated when I try to bind the following GridView to the ObjectSource that follows: <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete" InsertMethod="Insert" SelectMethod="FillMenusByLocation"             TypeName="RestaurantsTableAdapters.MenusTableAdapter" UpdateMethod="Update">    <DeleteParameters> &nbs...

Error updating with datagridview: ObjectDataSource 'objsavers' could not find a non-generic method 'Update' that has parameters: ContentID, Title, Price, DisplayDate, EndDate, original_ID
Hello,    I am having difficulty with using the objectdatasource tied to a typed dataset in another assembly. I dragged my table over to my typed dataset.  I dragged a datagridview to my form.  I told it to create a new objectadatasource, and pulled its data from a query I added called FillByContentID (which gets its parameter from the querystring, as in request.querystring("id")). It pulls the data just fine, I try to edit a row, and when I update the row, I get the following error message: ObjectDataSource 'objsavers' could not find a non-generic method 'Update...

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Insert' that has parameters: Identity Column insertion issue
   Hi, I am using ObjectDatasource for Insert/Update/Delete record from the table. Both Update and Delete are working fine but only problem with Insertion, I have CMP_ID is my primary key(PK) and its 'Identity' coulum, so whenever new record created the PK will generate automatically. Below is my Code snaps. <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete" InsertMethod="Insert" SelectMethod="GetData" OldValuesParameterFormatString="{0}" TypeName="CompanysDatasetTableAd...

DB Column Name with spaces: ObjectDataSource 'odsEquipment' could not find a non-generic method 'Update' that has parameters
I created a very simple web form to update a table which contains column names with spaces. For example: Serial Number,  Stock Number, etc. However, it seems the FormView control try to find the update method which has two parameters for each column name contains space (one with space and another one of underscore, e.g. Serial Number and Serial_Number) The error message is ObjectDataSource 'odsEquipment' could not find a non-generic method 'Update' that has parameters: Year, Manufacture, Model, Price, Serial_Number, Condition, Stock_Number, Horse_Power, Driv...

ObjectDataSource 'ObjectDataSourceMac' could not find a non-generic method 'Update'
I am using GridView for editing my data in Visual Studio 2005. So, when I click on "update", following error has been occuring. ObjectDataSource 'ObjectDataSourceMac' could not find a non-generic method 'Update' that has parameters: Machine_Type, Model, Manufacturer, Sold, original_Machine_ID, Machine Type. May the smile on your face Come straight from your heart :)khuram latifSr. Web Developer, As the error message suggests, you need an Update command in your ObjectDataSource that has those parameters. It must also be non-generic, again, as the error m...

Web resources about - ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: - asp.net.object-datasource

Resources last updated: 11/30/2015 5:18:29 PM