473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method

I am in a very deep hole and i can not see the light .

Here my mistake if you could help me.
store procedure.-they work ok.

ALTER PROCEDURE dbo.UpdateEtiClientesEtidora
(
@CLI_COD_PLAZA nvarchar(3),
@CLI_COD_CLI nvarchar(9),
@ETIDORA_COD_ANT int,
@ETIDORA_COD_NEW int,
@NUMERO int)
AS
SET NOCOUNT ON;
UPDATE EtiClientes SET CLI_COD_PLAZA=@CLI_COD_PLAZA,

CLI_COD_CLI=@CLI_COD_CLI,ETIDORA_COD=@ETIDORA_COD_ NEW,NUMERO=@NUMERO
WHERE ([CLI_COD_CLI] = @CLI_COD_CLI) and
([CLI_COD_PLAZA]=@CLI_COD_PLAZA) and ([ETIDORA_COD]=@ETIDORA_COD_ANT)

ALTER PROCEDURE dbo.DeleteEtiCustomerEtidora
(
@CLI_COD_CLI int,
@CLI_COD_PLAZA int,
@ETIDORA_COD int)
AS
SET NOCOUNT ON;
DELETE FROM EtiClientes WHERE ([CLI_COD_CLI] = @CLI_COD_CLI) and
([CLI_COD_PLAZA]=@CLI_COD_PLAZA) and
([ETIDORA_COD]=@ETIDORA_COD)
El siguiente codigo.

<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False"
DataSourceID="ObjectDataSource1">

<Columns>
<asp:TemplateField ShowHeader="False">
<EditItemTemplate>
<asp:ImageButton ID="ImageButton4" runat="server"
CausesValidation="True"
CommandName="Update" ImageUrl="~/img/bg.gif"
OnClientClick="Button4_Click"
/>
<asp:ImageButton ID="ImageButton5" runat="server"
CausesValidation="False"
CommandName="Cancel" ImageUrl="~/img/no.gif"
OnClientClick="Button5_Click"
/>

&nbsp;

</EditItemTemplate>
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/img/
Edit.gif"
OnClientClick="Button1_Click" commandname="Edit"/>
<asp:ImageButton ID="ImageButton2" runat="server" CommandName="select"
ImageUrl="~/img/detalle.gif" OnClientClick="button2_click" />
<asp:ImageButton ID="ImageButton3" runat="server"
ImageUrl="~/img/Delete.gif" OnClientClick="button3_click"
CommandName="delete" />
</ItemTemplate>

</asp:TemplateField>
<asp:TemplateField HeaderText="Cliente" SortExpression="CLI_COD_CLI">
<EditItemTemplate>
&nbsp;<asp:Label ID="Label4" runat="server" Text='<%#
Eval("CLI_COD_CLI")
%>' Width="48px"></asp:Label>

</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("CLI_COD_CLI")
%>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Numero" SortExpression="Numero">

<EditItemTemplate>
<asp:TextBox ID="TextBox2" runat="server" MaxLength="2" Text='<%#
Bind("Numero") %>'
Width="32px"></asp:TextBox>

</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("Numero")
%>'></asp:Label>

</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Modelo"
SortExpression="ETIDORA_NOMBRE">

<EditItemTemplate>
&nbsp;<asp:DropDownList ID="DropDownList1" runat="server"
DataSourceID="SqlDataSource1"
DataTextField="ETIDORA_NOMBRE" DataValueField="ETIDORA_NOMBRE"
Width="128px"
SelectedValue='<%# Bind("ETIDORA_NOMBRE") %>'>

</asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$
ConnectionStrings:ConnectionString2 %>"
SelectCommand="SELECT [ETIDORA_NOMBRE] FROM [ETIDORAS]"></
asp:SqlDataSource>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("ETIDORA_NOMBRE")
%>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>

</asp:GridView>
&nbsp;&nbsp;&nbsp; &nbsp;
</div>
&nbsp;&nbsp;&nbsp;
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
OldValuesParameterFormatString="{0}"
SelectMethod="GetEtiClientesEtidora"
TypeName="DsEtidoraTableAdapters.EtiClientesEtidor aTableAdapter"
DeleteMethod="DeleteEtiClientesEtidora"
UpdateMethod="UpdateEtiClientesEtidora"
InsertMethod="InsertEtiClientesEtidora">

<DeleteParameters>
<asp:Parameter Name="CLI_COD_PLAZA" Type="String" />
<asp:Parameter Name="CLI_COD_CLI" Type="String" />
<asp:Parameter Name="ETIDORA_COD" Type="Int32" />
</DeleteParameters>

<UpdateParameters>
<asp:Parameter Name="CLI_COD_PLAZA" Type="String" />
<asp:Parameter Name="CLI_COD_CLI" Type="String" />
<asp:Parameter Name="ETIDORA_COD_NEW" Type="Int32" />
<asp:Parameter Name="NUMERO" Type="Int32" />
<asp:Parameter Name="ETIDORA_COD_ANT" Type="Int32" />
</UpdateParameters>

<InsertParameters>
<asp:Parameter Name="CLI_COD_PLAZA" Type="String" />
<asp:Parameter Name="CLI_COD_CLI" Type="String" />
<asp:Parameter Name="ETIDORA_COD" Type="Int32" />
<asp:Parameter Name="NUMERO" Type="Int32" />
</InsertParameters>

<SelectParameters>
<asp:Parameter DefaultValue="01" Name="CLI_COD_PLAZA" Type="String" />
<asp:Parameter DefaultValue="813025" Name="CLI_COD_CLI" Type="String" /
>
</SelectParameters>

</asp:ObjectDataSource>

Jun 14 '07 #1
0 1461

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: J055 | last post by:
Hi I'm trying to get an instance of UserLists to persist after it's been used by the GridView. I understand from the documentation that The OnObjectCreated event allows access to the instance. I...
3
by: Robert | last post by:
What is the best way to pass a parameter to an ObjectDataSource. I am able to add a new parameter to the SelectParameters, but I would like to just assign a value to an existing parmeter at...
1
by: Islamegy® | last post by:
How could i pass a parmeter to objectDataSource.. objectDataSource1.UpdateParameters don't have "Value" Property, How could i set parameters value at runtime??
2
by: planetthoughtful | last post by:
Hi All, I have an ASP.NET page that displays a GridView control based on an ObjectDataSource control. I'm wondering if it's possible to base the ObjectDataSource in question on a parameter...
0
by: Jai | last post by:
Hi, Somebody please tell me how to bind(two way) a checkboxlist with objectdatasource if the checkboxlist is inside a formview..... Code of FormView is like this::--- <asp:FormView...
0
by: Jai | last post by:
Hi, Somebody please tell me how to bind(two way) a checkboxlist with objectdatasource if the checkboxlist is inside a formview..... Code of FormView is like this::--- <asp:FormView...
2
by: Olivier Matrot | last post by:
Hello, I'm using a gridview with objectdatasource and custom objects collections SELECT/INSERT/UPDATE/DELETE methods are using custom objects as parameters. This is working fine. But I have a...
0
by: Bryce Fischer | last post by:
I've got a simple (I think) asp.net application. I've created a DataSet in App_Code/ItemDataSet.xsd. Tested connection, seemed to work fine. In my ASPX file, I first dropped an...
5
by: Randy Smith | last post by:
Hi ALL, I wonder if anyone has been using n-tier to bind to a GridView control by using the ObjectDataSource. This is our first OOP web application, and we have no tables. Right now we are...
0
by: sugarnet | last post by:
Hi, I have a detailsview that contains templated fields. In the Edit/Insert mode, I would like to populate my DropDown from an ObjectDataSource. The data I need comes from a webservice that I'm...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.