• Viernes 8 de Noviembre de 2024, 14:53

Autor Tema:  Error: Objectdatasource 'objectdatasource1' Could  (Leído 1314 veces)

aitord

  • Nuevo Miembro
  • *
  • Mensajes: 8
    • Ver Perfil
Error: Objectdatasource 'objectdatasource1' Could
« en: Martes 12 de Junio de 2007, 12:58 »
0
error:

ObjectDataSource 'ObjectDataSource1' could not find a non-generic method
'UpdateEtiClientesEtidora' that has parameters: CLI_COD_PLAZA, CLI_COD_CLI,
ETIDORA_COD_NEW, Numero, ETIDORA_COD_ANT, ETIDORA_NOMBRE.


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"
/>

 

</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>

 <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>

 <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>

     



</div>

   

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
OldValuesParameterFormatString="{0}"

SelectMethod="GetEtiClientesEtidora"
TypeName="DsEtidoraTableAdapters.EtiClientesEtidoraTableAdapter"
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>