zoukankan      html  css  js  c++  java
  • datalist显示商品列表

    DataList横向显示数据

    <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>

    RepeatDirection=Horizontal 为设置为横向显示

    RepeatColumns=2 每行显示2条记录

  • 相关阅读:
    在上传文件时限制上传文件的大小,并捕捉超过文件大小限制的
    javascript 获取标签具体位置
    终端服务器超出了最大允许连接数
    常用SQL语句书写技巧
    Javascript实现截图功能(代码)
    JavaScript实现类,有多种方法。
    DBCC CHECKDB 数据库或表修复
    Lucene的例子
    控制同一exe程序打开多次
    IIS6 MMC检测到此管理单元发生一个错误,建议您关闭并重新启动mmc
  • 原文地址:https://www.cnblogs.com/zzxap/p/2175905.html
Copyright © 2011-2022 走看看