问题描述
- ObjectDataSource控件找不到对应的泛型方法
-
<cc1:Num1GridView ID="Num1GridViewShow" runat="server" AutoGenerateColumns="False"
AllowPaging="True" AllowSorting="True" ascendingimageurl="~/images/SortAsc.gif"
descendingimageurl="~/images/SortDesc.gif" AddSequenceColumn="False" Width="98%"<asp:Label ID="LabelPaymentStatus" runat="server" Text='<%# ChangePaymentStatus(DataBinder.Eval(Container, "DataItem(PaymentStatus)","{0}")) %>'></asp:Label> </ItemTemplate> <ItemStyle HorizontalAlign="Center" /> </asp:TemplateField> <asp:TemplateField HeaderText="发货状态" SortExpression="OderStatus"> <ItemTemplate> <asp:Label ID="LabelShipmentStatus" runat="server" Text='<%# ChangeShipmentStatus(DataBinder.Eval(Container, "DataItem(ShipmentStatus)","{0}")) %>'></asp:Label> </ItemTemplate> <ItemStyle HorizontalAlign="Center" /> </asp:TemplateField> <asp:TemplateField HeaderText="会员处理状态"> <ItemTemplate> <asp:Label ID="LabelMemberOrderState" runat="server" Text='<%# Eval("IsDeleted") %>'></asp:Label> </ItemTemplate> <ItemStyle HorizontalAlign="Center" /> </asp:TemplateField> <asp:BoundField DataField="BuyType" HeaderText="是否为团购订单"> <HeaderStyle CssClass="hidden" /> <ItemStyle CssClass="hidden" /> </asp:BoundField> <asp:BoundField DataField="AgentID" HeaderText="分销商" SortExpression="AgentID"> <ItemStyle HorizontalAlign="Center" /> </asp:BoundField> <asp:TemplateField HeaderText="分销商提取利润"> <ItemTemplate> <asp:Label ID="LabelAgentCommission" runat="server" Text='<%# Eval("Guid") %>' ToolTip="利润含有分站商品金额"></asp:Label> <asp:HiddenField ID="HiddenFieldOrderGuid" runat="server" Value='<%# Eval("Guid") %>' /> </ItemTemplate> <ItemStyle HorizontalAlign="Center" /> </asp:TemplateField> <asp:TemplateField HeaderText="提成状态"> <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%# AgentSettlement(Eval("IsCommission")) %>'></asp:Label> </ItemTemplate> <ItemStyle HorizontalAlign="Center" /> </asp:TemplateField> </Columns> </cc1:Num1GridView> </div> </div> <asp:HiddenField ID="CheckGuid" runat="server" Value="0" /> <asp:ObjectDataSource ID="ObjectDataSourceData" runat="server" SelectMethod="SearchAgent" TypeName="ShopNum1.BusinessLogic.ShopNum1_OrderInfo_Action"> <SelectParameters> <asp:ControlParameter ControlID="TextBoxOrderNumber" Name="orderNumber" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="TextBoxMemLoginID" Name="memLoginID" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="TextBoxName" Name="name" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="TextBoxAddress" Name="address" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="TextBoxPostalcode" Name="postalcode" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="TextBoxTel" Name="tel" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="TextBoxMobile" Name="mobile" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="TextBoxEmail" Name="email" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="DropDownListDispatchModeGuid" Name="dispatchModeGuid" PropertyName="SelectedValue" Type="String" /> <asp:ControlParameter ControlID="DropDownListPaymentGuid" Name="paymentGuid" PropertyName="SelectedValue" Type="String" /> <asp:ControlParameter ControlID="DropDownListOderStatus" Name="oderStatus" PropertyName="SelectedValue" Type="String" /> <asp:ControlParameter ControlID="DropDownListPaymentState" Name="PayMentStatus" PropertyName="SelectedValue" Type="String" /> <asp:ControlParameter ControlID="DropDownListShipmentState" Name="ShipmentStatus" PropertyName="SelectedValue" Type="String" /> <asp:ControlParameter ControlID="TextBoxShouldPayPrice1" Name="shouldPayPrice1" PropertyName="Text" Type="Decimal" /> <asp:ControlParameter ControlID="TextBoxShouldPayPrice2" Name="shouldPayPrice2" PropertyName="Text" Type="Decimal" /> <asp:ControlParameter ControlID="TextBoxCreateTime1" Name="createTime1" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="TextBoxCreateTime2" Name="createTime2" PropertyName="Text" Type="String" /> <asp:ControlParameter ControlID="DropDownListMemberDeleteState" Name="isDeleted" PropertyName="SelectedValue" Type="Int32" /> <asp:ControlParameter ControlID="TextBoxAgentID" Name="agentID" PropertyName="Text" Type="String" /> </SelectParameters> </asp:ObjectDataSource>
解决方案
贴出你发生错误的代码行,codebehind代码和错误提示信息。
时间: 2024-09-11 10:13:48