qq_22916667 2014-12-08 02:47 采纳率: 0%
浏览 1688

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>
  • 写回答

1条回答 默认 最新

  • threenewbee 2014-12-08 07:21
    关注

    贴出你发生错误的代码行,codebehind代码和错误提示信息。

    评论

报告相同问题?

悬赏问题

  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64