

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

  <table width="217" height="113" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="113" colspan="2"><div align="center">
   <a href='productlist.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id")%>' target="_blank"> <img Border="0" Height="110" Width="80" src='/upfile/<%# DataBinder.Eval(Container.DataItem,"ThumbnailsPic")%>'></a>
</div></td>
    <td width="122" colspan="2" align="center" valign="middle"><table width="100%" height="104" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left" style="width: 123px">
            <asp:LinkButton ID="Pname" runat="server" CssClass="fonttb2"><%# SubStr(Convert.ToString(DataBinder.Eval(Container.DataItem, "Products")),8) %></asp:LinkButton></td>
      </tr>
      <tr>
        <td align="left" style="width: 123px">市场价：<asp:Label ID="MakPrice" runat="server" style="text-decoration: line-through"><%#Convert.ToDecimal(DataBinder.Eval(Container.DataItem, "Marketprice")).ToString("C")%></asp:Label></td>
      </tr>
      <tr>
        <td align="left" style="width: 123px">优惠价：<asp:Label ID="Price" runat="server"><%#Convert.ToDecimal(DataBinder.Eval(Container.DataItem, "SalePrice")).ToString("C")%></asp:Label></td>
      </tr>
      <tr>
        <td align="left" style="width: 123px">立刻节省：<asp:Label ID="ShPrice" runat="server"><%# (Convert.ToDecimal(DataBinder.Eval(Container.DataItem, "Marketprice")) - Convert.ToDecimal(DataBinder.Eval(Container.DataItem, "SalePrice"))).ToString("C")%></asp:Label></td>
      </tr>
      <tr>
        <td align="left" style="width: 123px">
        
        <a href='/china/cart.aspx?pid=<%# DataBinder.Eval(Container.DataItem,"id")%>&do=addPP&price=<%#Convert.ToDecimal(DataBinder.Eval(Container.DataItem, "SalePrice"))%>' target="_blank">购买</a>
            <a href='/china/productlist.aspx?id=<%# DataBinder.Eval(Container.DataItem,"id")%>' target="_blank">查看</a></td>
      </tr>
    </table></td>
  </tr>
</table>