<asp:DataList ID="dlCardTitle" runat="server" Width="336px" Font-Size="9pt">
<ItemTemplate>
<table style="width: 478px" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 478px; text-align: left; background-image: url(../Admin/Image/标头.jpg); text-indent: 3pt; height: 22px;">
<asp:Label id="labCardTitle" ForeColor="Black" runat="server" Font-Size="9pt" Text="帖子标题:" />
<a href='CardPartInfo.aspx?title=<%# DataBinder.Eval(Container.DataItem,"title") %>' style="text-decoration:none">
<%# DataBinder.Eval(Container.DataItem, "title")%></a>
</td>
</tr>
<tr>
<td style="width: 478px; text-align: right; background-image: url(../Admin/Image/时间.jpg); height: 22px;">
<asp:Label ID="Label3" runat="server" Font-Size="9pt" Text="发帖日期:"></asp:Label>
<asp:Label ID="labCardDate" runat="server" Height="1px" Text='<%# DataBinder.Eval(Container.DataItem,"title_uptime") %>' Font-Size="9pt"></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
出现的问题是:DataBinding:“System.Data.DataRowView”不包含名为“title”的属性。请提供一下帮助 先谢了!
<ItemTemplate>
<table style="width: 478px" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 478px; text-align: left; background-image: url(../Admin/Image/标头.jpg); text-indent: 3pt; height: 22px;">
<asp:Label id="labCardTitle" ForeColor="Black" runat="server" Font-Size="9pt" Text="帖子标题:" />
<a href='CardPartInfo.aspx?title=<%# DataBinder.Eval(Container.DataItem,"title") %>' style="text-decoration:none">
<%# DataBinder.Eval(Container.DataItem, "title")%></a>
</td>
</tr>
<tr>
<td style="width: 478px; text-align: right; background-image: url(../Admin/Image/时间.jpg); height: 22px;">
<asp:Label ID="Label3" runat="server" Font-Size="9pt" Text="发帖日期:"></asp:Label>
<asp:Label ID="labCardDate" runat="server" Height="1px" Text='<%# DataBinder.Eval(Container.DataItem,"title_uptime") %>' Font-Size="9pt"></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
出现的问题是:DataBinding:“System.Data.DataRowView”不包含名为“title”的属性。请提供一下帮助 先谢了!
解决方案 »
- ClientScript.GetCallbackEventReference无刷新用法
- 如何在DataGird的模板里对字段进行运算。。。。急
- 需要开发一个院系级办公自动化系统,大家帮我出出点子.
- 急...用我所有分求一个问题,“/”应用程序中的服务器错误,小弟初学,~~~~~搞不顶小弟我就只有吃炒鱿鱼了
- 我用ASP.NET的,用IIS如何防盗?
- COM组件打包出了问题,帮忙看看吧
- 动易2007出来了,看了下,功能真多,这样的算大项目还是小项目?
- Highcharts 问题
- 关于事件驱动问题
- 请教:在ASP.net中如何实现文件重命名呢?
- 菜鸟求助财务统计方面的sql
- 在c#代码页如何引用sqldatasource或accessdatasource或oledb方式取得的记录数?
你的sql语句没有title这列,补上。
我在數據綁定時也出現過此問題,
原因就是在sql語句中沒有查出所要綁定的欄位信息