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