全部是默认设置,添加了模版后查看就只能显示偶数行,又放了datagrid来测试,datagrid又是对的,数据集里有数据,但是怎么只能显示偶数行?
<asp:DataList id="ViewTopic" runat="server" RepeatLayout="Flow" Width="100%" Height="100%" ShowHeader="False"
ShowFooter="False" EnableViewState="False">
设置如下,请那位大虾诊断下
<asp:DataList id="ViewTopic" runat="server" RepeatLayout="Flow" Width="100%" Height="100%" ShowHeader="False"
ShowFooter="False" EnableViewState="False">
设置如下,请那位大虾诊断下
解决方案 »
- 有人研究过discuz NT的源代码吗??
- 求助:如何发布自己写好的asp.net的网站?
- 求两条比较复杂的SQL语句
- 前台调用JavaScript多参数函数的问题,各位帮帮忙吧
- asp.net 页面中怎样插入swf文件?
- 请问如何写关键字查找的SQL语句?
- 小妹妹今天很急 请一定帮忙-----两个页面之间的多参数传递---在线等
- 在自己建的类库里如何使用Response.Write
- 一台只装了Win2000 Server的电脑,要装什么才能变成ASP.NET服务器呢?(高分求解)
- 不好意思,由于没有硬件版板,借此地一用.
- 初学asp.net帮忙解决:关于DataList中RadioButtonList的数据绑定?
- 我的连数据库的语句哪里有问题了,请大家帮我改一下
<headertemplate>
</headertemplate>
<itemtemplate>
<table width="780" border="0" cellpadding="0" cellspacing="0">
<tr id="chk" height="30" Runat="server">
<td width="780" rowspan="1" class="zhong13h"><a href='trydetail.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id").ToString() %>' target=_blank>
<%# CutString(DataBinder.Eval(Container.DataItem,"title").ToString(),27) %>
</a>
</td>
</tr>
</table>
</itemtemplate>
<table width="780" border="0" cellpadding="0" cellspacing="0">
<tr id="chk" height="30" Runat="server">
<td width="780" rowspan="1" class="zhong13h"><a href='trydetail.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id").ToString() %>' target=_blank>
<%# CutString(DataBinder.Eval(Container.DataItem,"title").ToString(),27) %>
</a>
</td>
</tr>
</table>
</alternatingitemtemplate>
</asp:datalist>
这个是好的,你参考的改改
但里面没有绑定数据
你检查一下你的页面代码.