DataBinding:'System.Data.DataRowView'不包含名为'__Page'的属性 [英] DataBinding: 'System.Data.DataRowView' does not contain a property with the name '__Page'

查看:100
本文介绍了DataBinding:'System.Data.DataRowView'不包含名为'__Page'的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法找出错误是什么,请参阅下文&建议我:





DataBinding:''System.Data.DataRowView''不包含属性名称''__Page''



I couldn''t find out what the error is please see below & suggest me :


DataBinding: ''System.Data.DataRowView'' does not contain a property with the name ''__Page''

<asp:DataList ID="DLCategory" runat="server" RepeatColumns="1" RepeatDirection="Horizontal">
        <ItemTemplate>
           <a href="Category.aspx?Cid=<%#Eval(ID) %>">  // show error in this part
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("Name") %>'></asp:Label></a>
            </ItemTemplate>
        </asp:DataList>

推荐答案

试试这个: -

try this :-
<a href='<%# "Category.aspx?Cid={0}",  Eval("ID") %>'>
          <asp:label id="Label1" runat="server" text='<%# Eval("Name") %>'>
          </asp:label>
  </a>


这篇关于DataBinding:'System.Data.DataRowView'不包含名为'__Page'的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆