

将以下代码，直接复制到DATALIST控件的普通模板中


<table height="113" border="0" cellpadding="0" cellspacing="0" style="width: 122px" class="ishot3td">
    <tr>
        <td align="center" colspan="4" valign="middle">
            <asp:LinkButton ID="LinkButton1" runat="server" CssClass="fonttb2"><%# SubStr(Convert.ToString(DataBinder.Eval(Container.DataItem, "Products")),8) %></asp:LinkButton></td>
    </tr>
  <tr>
      <td align="center" colspan="4" valign="middle">
          <div align="center">
               <a href='productlist.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id")%>' target="_blank"> <img Border="0" Height="100" Width="100" src='/upfile/<%# DataBinder.Eval(Container.DataItem,"ThumbnailsPic")%>'></a></div>
      </td>
  </tr>
    <tr>
        <td align="center" colspan="4" valign="middle">
            优惠价：
            <asp:Label ID="Label2" runat="server"><%#Convert.ToDecimal(DataBinder.Eval(Container.DataItem, "SalePrice")).ToString("C")%></asp:Label></td>
    </tr>
</table>