您的位置:首页 > 其它

DataList横向显示数据

2010-08-13 22:57 141 查看
<asp:datalist id="MyList" RepeatDirection=Horizontal RepeatColumns=2 showfooter=true borderwidth=0 runat=server>
<HeaderTemplate>
<table height=100% width=288 cellpadding=0 cellspacing=0 border=0 >
<tr>
</HeaderTemplate>
<ItemTemplate>
<td>
<table>
<tr>
<td width=130>
<a href="Hotel/hotelDetail.aspx?H_ID=<%# DataBinder.Eval(Container.DataItem, "H_ID")%>" target=_blank><img height="90" width="130" border=0 src="HotelManage/pic/<%# DataBinder.Eval(Container.DataItem, "H_Pic1")%>" /></a>
</td>
</tr>
<tr>
<td>
<%# DataBinder.Eval(Container.DataItem, "H_Name")%>
</td>
</tr>
</table>
</td>
</ItemTemplate>
<FooterTemplate>
</tr>
</table>
</FooterTemplate>
</asp:datalist>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: