熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

在datalist中顯示不同顏色(方式)的列表

2013-11-13 09:50:03  來源: .NET編程 

  <asp:DataList ID=DataList runat=server>

  <ItemTemplate>

  <table align=center border= cellpadding=

  cellspacing= width=>

  <tr>

  <td colspan= height=>

  </td>

  </tr>

  <tr>

  【<%#Exhibition(Eval(ID))%>】將ID綁定出來寫到用一個方法處理

  </tr>

  <tr>

  <td class=grayblack graydashed width=>

  <%#Eval(City) %>  |  <%#DateFormatShortDate(Eval(BeginTime)) %>  到  <%#DateFormatShortDate(Eval(EndTime)) %></td>

  <td class=lightgreen graydashed width=>

  <%#DateDiff(Eval(BeginTime)Eval(EndTime))%></td>

  </tr>

  </table>

  </ItemTemplate>

  </asp:DataList>

  <asp:DataList ID=DataList runat=server>

  <ItemTemplate>

  <table align=center border= cellpadding=

  cellspacing= width=>

  <tr>

  <td colspan= height=>

  </td>

  </tr>

  <tr>

  【<%#Exhibition(Eval(ID))%>】將ID綁定出來寫到用一個方法處理

  </tr>

  <tr>

  <td class=grayblack graydashed width=>

  <%#Eval(City) %>  |  <%#DateFormatShortDate(Eval(BeginTime)) %>  到  <%#DateFormatShortDate(Eval(EndTime)) %></td>

  <td class=lightgreen graydashed width=>

  <%#DateDiff(Eval(BeginTime)Eval(EndTime))%></td>

  </tr>

  </table>

  </ItemTemplate>

  </asp:DataList>

  view plaincopy to clipboardprint?


From:http://tw.wingwit.com/Article/program/net/201311/11699.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.