<asp:DataList ID="dlqiuzhi" runat="server" RepeatColumns="2" Width="354px" RepeatDirection="Horizontal">
<ItemTemplate>
<div style="text-align: center">
<table width="33" height="76" cellpadding="0" cellspacing="0">
<tr>
<td><table width="124" height="94" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#999999">
<tr>
<td width="367" align="center" valign="middle" bgcolor="#FFFFFF"><a title='<%#Eval("videoTitle") %>' target=_blank href='play.aspx?id=<%#Eval("id") %>' >
<asp:Image ID="Image1" runat="server" Height="90px" ImageUrl='<%#Eval("videoPicture") %>' Width="120px" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" class="shenhong"> <a title='<%#Eval("videoTitle") %>' target="_blank" href='play.aspx?id=<%#Eval("id") %>' >
<%#operateMethod.interceptStr((string)Eval("videoTitle"),6) %>
</a></td>
</tr>
</table>
</div>
</ItemTemplate>
</asp:DataList>
这段程序显示的是两列多行。我想实现两列一行的效果,应该怎么改?
<ItemTemplate>
<div style="text-align: center">
<table width="33" height="76" cellpadding="0" cellspacing="0">
<tr>
<td><table width="124" height="94" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#999999">
<tr>
<td width="367" align="center" valign="middle" bgcolor="#FFFFFF"><a title='<%#Eval("videoTitle") %>' target=_blank href='play.aspx?id=<%#Eval("id") %>' >
<asp:Image ID="Image1" runat="server" Height="90px" ImageUrl='<%#Eval("videoPicture") %>' Width="120px" /></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" class="shenhong"> <a title='<%#Eval("videoTitle") %>' target="_blank" href='play.aspx?id=<%#Eval("id") %>' >
<%#operateMethod.interceptStr((string)Eval("videoTitle"),6) %>
</a></td>
</tr>
</table>
</div>
</ItemTemplate>
</asp:DataList>
这段程序显示的是两列多行。我想实现两列一行的效果,应该怎么改?
解决方案 »
- 使用javascript怎样获得treeview的被选中节点的文本
- 用户控件问题
- 问个最笨的问题.....
- 请教影音连续播放的问题
- Datalist模板中放了HTML控件Table,Table中的服务器控件Label,如何通过FindControl得到Label的值
- 在线求救
- 高手们帮我看下这是什么错?
- 如何获取IFRAME中文档的内容。
- asp.net工程该怎样部署?
- 装了vs。net后原来的vs6。0还能用吗?
- dreamwaver 调试asp.net程序与vs2005中调试asp.net程序有什么区别?
- 急!!!在线请教!未能在 ControlParameter“queryproject”中找到控件“DropProject”。
那你用repeater做什么?
直接绑定一条记录不就是一行了??